| Index: lib/compiler/implementation/elements/elements.dart
|
| diff --git a/lib/compiler/implementation/elements/elements.dart b/lib/compiler/implementation/elements/elements.dart
|
| index 6b77e71cf8e89f271c65f71ebc54af64846f58de..4297c8bf0fb54fc8cc49d98f72c3f705cf514a90 100644
|
| --- a/lib/compiler/implementation/elements/elements.dart
|
| +++ b/lib/compiler/implementation/elements/elements.dart
|
| @@ -948,17 +948,6 @@ class VariableListElement extends Element {
|
| bool isInstanceMember() {
|
| return isMember() && !modifiers.isStatic();
|
| }
|
| -
|
| - // TODO(johnniwinther): Rewrite to avoid the optional argument.
|
| - Scope buildScope({bool patchScope: false}) {
|
| - Scope result = new VariableScope(
|
| - enclosingElement.buildScope(patchScope: patchScope), this);
|
| - if (enclosingElement.isClass()) {
|
| - Scope clsScope = result.parent;
|
| - clsScope.inStaticContext = !isInstanceMember();
|
| - }
|
| - return result;
|
| - }
|
| }
|
|
|
| class ForeignElement extends Element {
|
| @@ -1206,17 +1195,6 @@ class FunctionElement extends Element {
|
| return super.toString();
|
| }
|
| }
|
| -
|
| - // TODO(johnniwinther): Rewrite to avoid the optional argument.
|
| - Scope buildScope({bool patchScope: false}) {
|
| - Scope result = new MethodScope(
|
| - enclosingElement.buildScope(patchScope: patchScope), this);
|
| - if (enclosingElement.isClass()) {
|
| - Scope clsScope = result.parent;
|
| - clsScope.inStaticContext = !isInstanceMember() && !isConstructor();
|
| - }
|
| - return result;
|
| - }
|
| }
|
|
|
| class ConstructorBodyElement extends FunctionElement {
|
|
|