forked from jasder/antlr
[Swift] Remove ATNState.INITIAL_NUM_TRANSITIONS.
This was brought over from the Java runtime in the initial port, but there it was used as an array capacity hint. We're not using it in Swift so this is useless.
This commit is contained in:
parent
8a34dcdcf9
commit
9ca1a9e158
|
@ -66,8 +66,6 @@
|
|||
///
|
||||
///
|
||||
public class ATNState: Hashable, CustomStringConvertible {
|
||||
public static let INITIAL_NUM_TRANSITIONS: Int = 4
|
||||
|
||||
// constants for serialization
|
||||
public static let INVALID_TYPE: Int = 0
|
||||
public static let BASIC: Int = 1
|
||||
|
@ -117,8 +115,7 @@ public class ATNState: Hashable, CustomStringConvertible {
|
|||
///
|
||||
/// Track the transitions emanating from this ATN state.
|
||||
///
|
||||
internal final var transitions: Array<Transition> = Array<Transition>()
|
||||
//Array<Transition>(INITIAL_NUM_TRANSITIONS);
|
||||
internal final var transitions = [Transition]()
|
||||
|
||||
///
|
||||
/// Used to cache lookahead during parsing, not used during construction
|
||||
|
|
Loading…
Reference in New Issue