diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/types/lang/KotlinBuiltIns.java b/compiler/frontend/src/org/jetbrains/jet/lang/types/lang/KotlinBuiltIns.java index 833a9ebeda7..3bd0a1163a7 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/types/lang/KotlinBuiltIns.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/types/lang/KotlinBuiltIns.java @@ -170,9 +170,10 @@ public class KotlinBuiltIns { private KotlinBuiltIns(@NotNull Project project) { try { - this.builtInsModule = new ModuleDescriptorImpl(Name.special(""), DefaultModuleConfiguration.DEFAULT_JET_IMPORTS, + this.builtInsModule = new ModuleDescriptorImpl(Name.special(""), + DefaultModuleConfiguration.DEFAULT_JET_IMPORTS, PlatformToKotlinClassMap.EMPTY); - builtInsModule.setModuleConfiguration(SpecialModuleConfiguration.INSTANCE); + builtInsModule.setModuleConfiguration(ModuleConfiguration.EMPTY); this.analyzer = createLazyResolveSession(project); this.functionClassesSet = computeIndexedClasses("Function", FUNCTION_TRAIT_COUNT); @@ -257,21 +258,6 @@ public class KotlinBuiltIns { return files; } - private static class SpecialModuleConfiguration implements ModuleConfiguration { - - public static final ModuleConfiguration INSTANCE = new SpecialModuleConfiguration(); - - private SpecialModuleConfiguration() { - } - - @Override - public void extendNamespaceScope(@NotNull BindingTrace trace, - @NotNull NamespaceDescriptor namespaceDescriptor, - @NotNull WritableScope namespaceMemberScope) { - // DO nothing - } - } - private void makePrimitive(PrimitiveType primitiveType) { ClassDescriptor theClass = getBuiltInClassByName(primitiveType.getTypeName().getName()); JetType type = new JetTypeImpl(theClass);