Skip to content

Commit e81c1c5

Browse files
scheglovcommit-bot@chromium.org
authored and
commit-bot@chromium.org
committed
Remove the workaround for a stale issue.
R=brianwilkerson@google.com Bug: #25884 Change-Id: I87741664f00200170990e9a13d2f639c41671bda Reviewed-on: https://dart-review.googlesource.com/71924 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
1 parent 1f52372 commit e81c1c5

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

pkg/analysis_server/lib/src/computer/computer_overrides.dart

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,6 @@ class _OverriddenElementsFinder {
136136
_OverriddenElementsFinder(Element seed) {
137137
_seed = seed;
138138
_class = seed.enclosingElement;
139-
if (_class == null) {
140-
// TODO(brianwilkerson) Remove this code when the issue has been fixed
141-
// (https://github.com/dart-lang/sdk/issues/25884)
142-
Type type = seed.runtimeType;
143-
String name = seed.name;
144-
throw new ArgumentError(
145-
'The $type named $name does not have an enclosing element');
146-
}
147139
_library = _class.library;
148140
_name = seed.displayName;
149141
if (seed is MethodElement) {

0 commit comments

Comments
 (0)