[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:
Ewan Mellor 2018-11-09 10:42:53 -08:00
parent 8a34dcdcf9
commit 9ca1a9e158
No known key found for this signature in database
GPG Key ID: 7CE1C6BC9EC8645D
1 changed files with 1 additions and 4 deletions

View File

@ -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