CR-IC-7401#c41613 remove incorrect code

This commit is contained in:
Vladimir Krivosheev
2015-09-23 11:27:58 +02:00
parent 71552305ae
commit 97fac8864e
@@ -771,15 +771,6 @@ public abstract class ModuleManagerImpl extends ModuleManager implements Project
throw new FileNotFoundException(ProjectBundle.message("module.file.does.not.exist.error", filePath));
}
final String name = moduleFile.getName();
if (name.endsWith(IML_EXTENSION)) {
final String moduleName = name.substring(0, name.length() - 4);
if (myModules.containsKey(moduleName)) {
throw new ModuleWithNameAlreadyExists(ProjectBundle.message("module.already.exists.error", moduleName), moduleName);
}
}
String path = moduleFile.getPath();
ModuleEx module = getModuleByFilePath(path);
if (module == null) {