Skip to content

Commit ed3aa11

Browse files
committed
[Java] Remove old unused code.
1 parent fdd2f57 commit ed3aa11

File tree

1 file changed

+2
-36
lines changed
  • sbe-tool/src/main/java/uk/co/real_logic/sbe/ir

1 file changed

+2
-36
lines changed

sbe-tool/src/main/java/uk/co/real_logic/sbe/ir/Token.java

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -65,22 +65,6 @@
6565
*/
6666
public class Token
6767
{
68-
/**
69-
* Indicates how the version field should be interpreted.
70-
*/
71-
public enum VersionContext
72-
{
73-
/**
74-
* Indicates the version is for the template itself.
75-
*/
76-
TEMPLATE_VERSION,
77-
78-
/**
79-
* Indicates the field was introduced since this template version.
80-
*/
81-
SINCE_TEMPLATE_VERSION
82-
}
83-
8468
/**
8569
* Invalid ID value.
8670
*/
@@ -204,10 +188,9 @@ public int id()
204188
}
205189

206190
/**
207-
* The version context for this token.
191+
* The version context for this token. This is the schema version in which the type was introduced.
208192
*
209-
* @return version context for this token.
210-
* @see Token#versionContext()
193+
* @return version for this type.
211194
*/
212195
public int version()
213196
{
@@ -234,23 +217,6 @@ public String applicableTypeName()
234217
return null == referencedName ? name : referencedName;
235218
}
236219

237-
/**
238-
* The context in which the version field should be interpreted.
239-
*
240-
* @return context in which the version field should be interpreted.
241-
*/
242-
public VersionContext versionContext()
243-
{
244-
if (signal == Signal.BEGIN_MESSAGE || signal == Signal.END_MESSAGE)
245-
{
246-
return VersionContext.TEMPLATE_VERSION;
247-
}
248-
else
249-
{
250-
return VersionContext.SINCE_TEMPLATE_VERSION;
251-
}
252-
}
253-
254220
/**
255221
* The encodedLength of this token in bytes.
256222
*

0 commit comments

Comments
 (0)