| Index: compiler/java/com/google/dart/compiler/resolver/Elements.java
|
| diff --git a/compiler/java/com/google/dart/compiler/resolver/Elements.java b/compiler/java/com/google/dart/compiler/resolver/Elements.java
|
| index 6ced5c8e63b2d25020b7b86cce47dd94f132be10..755443436b344131fb58d046961f03c8716832db 100644
|
| --- a/compiler/java/com/google/dart/compiler/resolver/Elements.java
|
| +++ b/compiler/java/com/google/dart/compiler/resolver/Elements.java
|
| @@ -48,10 +48,6 @@ import java.util.Set;
|
| * Utility and factory methods for elements.
|
| */
|
| public class Elements {
|
| - /**
|
| - * Name of the artificial function used for resolution of "assert" statement.
|
| - */
|
| - public static final String ASSERT_FUNCTION_NAME = "assert__forStatement" + System.currentTimeMillis();
|
|
|
| private Elements() {} // Prevent subclassing and instantiation.
|
|
|
| @@ -736,20 +732,6 @@ static FieldElementImplementation fieldFromNode(DartField node,
|
| }
|
|
|
| /**
|
| - * @return <code>true</code> if given {@link Element} if {@link MethodElement} for artificial
|
| - * "assert" statement.
|
| - */
|
| - public static boolean isArtificialAssertMethod(Element element) {
|
| - if (element instanceof MethodElement) {
|
| - MethodElement methodElement = (MethodElement) element;
|
| - return Objects.equal(methodElement.getName(), ASSERT_FUNCTION_NAME)
|
| - && methodElement.getEnclosingElement() instanceof LibraryElement
|
| - && methodElement.getEnclosingElement().getName().equals("dart://core/core.dart");
|
| - }
|
| - return false;
|
| - }
|
| -
|
| - /**
|
| * @return <code>true</code> if normal field or abstract field with getter.
|
| */
|
| public static boolean isFieldWithGetter(FieldElement fieldElement) {
|
|
|