| Index: compiler/java/com/google/dart/compiler/resolver/CoreTypeProviderImplementation.java
|
| diff --git a/compiler/java/com/google/dart/compiler/resolver/CoreTypeProviderImplementation.java b/compiler/java/com/google/dart/compiler/resolver/CoreTypeProviderImplementation.java
|
| index 32c9c2bd1e36fe04425c021f525e4fa10d2da4f1..14c97bc507e1fbc3ff213ecd5519df6b67fbc74e 100644
|
| --- a/compiler/java/com/google/dart/compiler/resolver/CoreTypeProviderImplementation.java
|
| +++ b/compiler/java/com/google/dart/compiler/resolver/CoreTypeProviderImplementation.java
|
| @@ -25,13 +25,8 @@ public class CoreTypeProviderImplementation implements CoreTypeProvider {
|
| private final DynamicType dynamicType;
|
| private final Type voidType;
|
| private final Type nullType;
|
| - private final InterfaceType fallThroughError;
|
| private final InterfaceType mapType;
|
| - @SuppressWarnings("unused")
|
| - private final InterfaceType mapLiteralType;
|
| - private final InterfaceType objectArrayType;
|
| private final InterfaceType objectType;
|
| - private final InterfaceType stringImplementation;
|
| private final InterfaceType iteratorType;
|
| private final InterfaceType typeType;
|
|
|
| @@ -47,15 +42,9 @@ public class CoreTypeProviderImplementation implements CoreTypeProvider {
|
| this.voidType = Types.newVoidType();
|
| // Currently, there is no need for a special null type.
|
| this.nullType = dynamicType;
|
| - this.fallThroughError = getType("FallThroughError", scope, listener);
|
| this.mapType = getType("Map", scope, listener);
|
| - this.mapLiteralType = getType("LinkedHashMapImplementation", scope, listener);
|
| - this.objectArrayType = getType(new String[] {
|
| - "ListImplementation", "GrowableObjectArray", "ListFactory"}, scope, listener);
|
| this.objectType = getType("Object", scope, listener);
|
| - this.stringImplementation = getType(new String[] {
|
| - "StringImplementation", "OneByteString"}, scope, listener);
|
| - iteratorType = getType("Iterator", scope, listener);
|
| + this.iteratorType = getType("Iterator", scope, listener);
|
| this.typeType = getType("Type", scope, listener);
|
| }
|
|
|
| @@ -119,11 +108,6 @@ public class CoreTypeProviderImplementation implements CoreTypeProvider {
|
| }
|
|
|
| @Override
|
| - public InterfaceType getArrayLiteralType(Type elementType) {
|
| - return getArrayType(elementType);
|
| - }
|
| -
|
| - @Override
|
| public DynamicType getDynamicType() {
|
| return dynamicType;
|
| }
|
| @@ -139,26 +123,11 @@ public class CoreTypeProviderImplementation implements CoreTypeProvider {
|
| }
|
|
|
| @Override
|
| - public InterfaceType getFallThroughError() {
|
| - return fallThroughError;
|
| - }
|
| -
|
| - @Override
|
| public InterfaceType getMapType(Type key, Type value) {
|
| return mapType.subst(Arrays.asList(key, value), mapType.getElement().getTypeParameters());
|
| }
|
|
|
| @Override
|
| - public InterfaceType getMapLiteralType(Type key, Type value) {
|
| - return getMapType(key, value);
|
| - }
|
| -
|
| - @Override
|
| - public InterfaceType getObjectArrayType() {
|
| - return objectArrayType;
|
| - }
|
| -
|
| - @Override
|
| public InterfaceType getObjectType() {
|
| return objectType;
|
| }
|
| @@ -169,11 +138,6 @@ public class CoreTypeProviderImplementation implements CoreTypeProvider {
|
| }
|
|
|
| @Override
|
| - public InterfaceType getStringImplementationType() {
|
| - return stringImplementation;
|
| - }
|
| -
|
| - @Override
|
| public InterfaceType getIteratorType(Type elementType) {
|
| return iteratorType.subst(Arrays.asList(elementType),
|
| iteratorType.getElement().getTypeParameters());
|
|
|