Cleanup (duplicate)

This commit is contained in:
Roman Shevchenko
2017-03-20 16:45:43 +01:00
parent 4605b230a3
commit 32b0e7c279
@@ -176,7 +176,7 @@ public class ProjectRootManagerComponent extends ProjectRootManagerImpl implemen
if (roots == null) return false;
for (VirtualFilePointer pointer : pointers) {
final String path = url2path(pointer.getUrl());
String path = extractLocalPath(pointer.getUrl());
if (roots.first.contains(path) || roots.second.contains(path)) return true;
}
@@ -209,14 +209,6 @@ public class ProjectRootManagerComponent extends ProjectRootManagerImpl implemen
}
}
private static String url2path(String url) {
String path = VfsUtilCore.urlToPath(url);
int separatorIndex = path.indexOf(JarFileSystem.JAR_SEPARATOR);
if (separatorIndex < 0) return path;
return path.substring(0, separatorIndex);
}
@Nullable
private Pair<Set<String>, Set<String>> getAllRoots(boolean includeSourceRoots) {
if (myProject.isDefault()) return null;