mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
CR-IC-7401#c41613 remove incorrect code
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user