Skip to content

Commit

Permalink
remove unnecessary method and TODO
Browse files Browse the repository at this point in the history
This method was needed for a workaround that is outdated. So it can be removed safely.
  • Loading branch information
Michael5601 committed Jun 11, 2024
1 parent 528c706 commit 42cf4fb
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,10 @@ public static boolean isInsideOpenZipFile(IFileStore store) {
return store instanceof ZipFileStore;
}

public static boolean isInsideOpenZipFile(URI locationURI) {
IFileStore store;
try {
store = EFS.getStore(locationURI);
} catch (CoreException e) {
return false;
}
return isInsideOpenZipFile(store);
}

//TODO Implement this method
public static boolean isOpenZipFile(IFileStore store) {
if (isInsideOpenZipFile(store)) {
ZipFileStore zipStore = (ZipFileStore) store;
return zipStore.getPath().isEmpty(); //if path is empty its the root
return zipStore.getPath().isEmpty(); //if path is empty it's the root
}
return false;
}
Expand Down

0 comments on commit 42cf4fb

Please sign in to comment.