mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
[vm] Remove Dart 1 enum implementation.
Change-Id: I5033eacf0fb66bb3b922e5c0f62d986c89f81708 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/105801 Reviewed-by: Siva Annamalai <asiva@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
parent
433cb12a87
commit
8fa1cb2911
|
@ -94,14 +94,6 @@ class num {
|
|||
bool _equalToInteger(int other);
|
||||
}
|
||||
|
||||
// The members of this class are cloned and added to each class that
|
||||
// represents an enum type.
|
||||
class _EnumHelper {
|
||||
String _name;
|
||||
String toString() => _name;
|
||||
int get hashCode => _name.hashCode;
|
||||
}
|
||||
|
||||
// _SyncIterable and _syncIterator are used by the compiler to
|
||||
// implement sync* generator functions. A sync* generator allocates
|
||||
// and returns a new _SyncIterable object.
|
||||
|
|
|
@ -330,8 +330,6 @@ class ObjectPointerVisitor;
|
|||
V(_DeletedEnumPrefix, "Deleted enum value from ") \
|
||||
V(_DeletedEnumSentinel, "_deleted_enum_sentinel") \
|
||||
V(_Double, "_Double") \
|
||||
V(_EnumHelper, "_EnumHelper") \
|
||||
V(_EnumNames, "_enum_names") \
|
||||
V(_ExternalFloat32Array, "_ExternalFloat32Array") \
|
||||
V(_ExternalFloat32x4Array, "_ExternalFloat32x4Array") \
|
||||
V(_ExternalFloat64Array, "_ExternalFloat64Array") \
|
||||
|
|
Loading…
Reference in a new issue