diff --git a/sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/golang/flyweight/GolangFlyweightGenerator.java b/sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/golang/flyweight/GolangFlyweightGenerator.java index 5a44da3e6..259c46140 100644 --- a/sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/golang/flyweight/GolangFlyweightGenerator.java +++ b/sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/golang/flyweight/GolangFlyweightGenerator.java @@ -2174,7 +2174,6 @@ private CharSequence generateMessageFlyweightCode( final String schemaIdType = goTypeName(ir.headerStructure().schemaIdType()); final String schemaVersionType = goTypeName(ir.headerStructure().schemaVersionType()); final String semanticType = token.encoding().semanticType() == null ? "" : token.encoding().semanticType(); - final String headerType = ir.headerStructure().tokens().get(0).name(); final String semanticVersion = ir.semanticVersion() == null ? "" : ir.semanticVersion(); sb.append(" buffer []byte\n" +