mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cleanup (duplicate)
This commit is contained in:
+1
-9
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user