From 8fa1cb29117f39fa55eef22b2e8eda52f47dfaa9 Mon Sep 17 00:00:00 2001 From: Ryan Macnak Date: Wed, 12 Jun 2019 19:26:32 +0000 Subject: [PATCH] [vm] Remove Dart 1 enum implementation. Change-Id: I5033eacf0fb66bb3b922e5c0f62d986c89f81708 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/105801 Reviewed-by: Siva Annamalai Commit-Queue: Ryan Macnak --- runtime/lib/core_patch.dart | 8 -------- runtime/vm/symbols.h | 2 -- 2 files changed, 10 deletions(-) diff --git a/runtime/lib/core_patch.dart b/runtime/lib/core_patch.dart index 7b1876d6691..c0951786668 100644 --- a/runtime/lib/core_patch.dart +++ b/runtime/lib/core_patch.dart @@ -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. diff --git a/runtime/vm/symbols.h b/runtime/vm/symbols.h index 5454049c9f1..f8b93b344fd 100644 --- a/runtime/vm/symbols.h +++ b/runtime/vm/symbols.h @@ -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") \