From 1e9da99fe6f29df946a128dfd63175b29388341e Mon Sep 17 00:00:00 2001 From: Michael Haubenwallner Date: Tue, 30 May 2023 15:19:03 +0200 Subject: [PATCH] ClasspathComputer: drop public method createEntryUsingPreviousEntry Not used internally any more, being public was a mistake eventually. --- .../pde/internal/core/ClasspathComputer.java | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/ClasspathComputer.java b/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/ClasspathComputer.java index 28e6f3124d..8807493fd2 100644 --- a/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/ClasspathComputer.java +++ b/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/ClasspathComputer.java @@ -463,36 +463,6 @@ private static void setMinimumCompliance(Map map, String key, St } } - /** - * Returns a new classpath container entry for the given execution environment. If the given java project - * has an existing JRE/EE classpath entry, the access rules, extra attributes and isExported settings of - * the existing entry will be added to the new execution entry. - * - * @param javaProject project to check for existing classpath entries - * @param ee id of the execution environment to create an entry for - * @param path id of the container to create an entry for - * - * @return new classpath container entry - * @throws CoreException if there is a problem accessing the classpath entries of the project - */ - public static IClasspathEntry createEntryUsingPreviousEntry(IJavaProject javaProject, String ee, IPath path) throws CoreException { - IClasspathEntry[] entries = javaProject.getRawClasspath(); - for (IClasspathEntry entry : entries) { - if (path.isPrefixOf(entry.getPath()) && path.equals(PDECore.JRE_CONTAINER_PATH)) { - return JavaCore.newContainerEntry(getEEPath(ee), entry.getAccessRules(), entry.getExtraAttributes(), entry.isExported()); - } - if (entry.getPath().equals(path)) { - return JavaCore.newContainerEntry(path, entry.getAccessRules(), entry.getExtraAttributes(), entry.isExported()); - } - } - - if (path.equals(PDECore.JRE_CONTAINER_PATH)) { - return createJREEntry(ee); - } - - return JavaCore.newContainerEntry(path); - } - /** * Returns a classpath container entry for the given execution environment. * @param ee id of the execution environment or null