| Index: lib/compiler/implementation/elements/elements.dart
|
| diff --git a/lib/compiler/implementation/elements/elements.dart b/lib/compiler/implementation/elements/elements.dart
|
| index 457cbd6b7ca27cff502161cfe6de012aee930111..a48cb4962da15ca0627e9d4dae2050af2f196dbd 100644
|
| --- a/lib/compiler/implementation/elements/elements.dart
|
| +++ b/lib/compiler/implementation/elements/elements.dart
|
| @@ -936,17 +936,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 {
|
| @@ -1194,17 +1183,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 {
|
|
|