Skip to content

Commit eea0139

Browse files
committed
[Java] Remove dead code.
1 parent a98194e commit eea0139

File tree

1 file changed

+0
-31
lines changed
  • sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/golang

1 file changed

+0
-31
lines changed

sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/golang/GolangUtil.java

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import uk.co.real_logic.sbe.SbeTool;
2020
import uk.co.real_logic.sbe.util.ValidationUtil;
2121

22-
import java.nio.ByteOrder;
2322
import java.util.EnumMap;
2423
import java.util.Map;
2524

@@ -143,34 +142,4 @@ public static String formatTypeName(final String value)
143142
{
144143
return toUpperFirstChar(value);
145144
}
146-
147-
/**
148-
* Return the Golang formatted byte order encoding string to use for a given byte order and primitiveType
149-
*
150-
* @param byteOrder of the {@link uk.co.real_logic.sbe.ir.Token}
151-
* @param primitiveType of the {@link uk.co.real_logic.sbe.ir.Token}
152-
* @return the string formatted as the byte ordering encoding
153-
*/
154-
public static String formatByteOrderEncoding(final ByteOrder byteOrder, final PrimitiveType primitiveType)
155-
{
156-
switch (primitiveType.size())
157-
{
158-
case 2:
159-
return "binary.Write(buf, order, obj)";
160-
161-
case 4:
162-
return "binary.Write(buf, order, obj)";
163-
164-
case 8:
165-
return "binary.Write(buf, order, obj)";
166-
167-
default:
168-
return "";
169-
}
170-
}
171-
172-
public static String closingBraces(final int count)
173-
{
174-
return new String(new char[count]).replace("\0", "}\n");
175-
}
176145
}

0 commit comments

Comments
 (0)