Skip to content

Commit

Permalink
Remove redundant projectClassPath() in SootRunner
Browse files Browse the repository at this point in the history
Remove redundant method called projectClassPath() from SootRunner in core plugin, because it has an identical functionality as the applicationClassPath() method

Signed-off-by: Enri Ozuni <enriozuni@hotmail.com>
  • Loading branch information
enriozuni committed Jan 24, 2021
1 parent 4e3bc47 commit c63c7fd
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,19 +162,6 @@ public static List<CrySLRule> getRules(IProject project) {

}

private static List<String> projectClassPath(final IJavaProject javaProject) {
final IWorkspace workspace = ResourcesPlugin.getWorkspace();
try {
final List<String> urls = new ArrayList<>();
urls.add(new File(workspace.getRoot().getFile(javaProject.getOutputLocation()).getLocationURI()).getAbsolutePath());
return urls;
}
catch (final Exception e) {
Activator.getDefault().logError(e, "Error building project classpath");
return Lists.newArrayList();
}
}

public static boolean runSoot(final IJavaProject project, final ResultsCCUIListener resultsReporter, final Boolean dependencyAnalyser) {

G.reset();
Expand Down

0 comments on commit c63c7fd

Please sign in to comment.