Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2015-05-06 10:52:45 -0400
committerIgor Fedorenko2015-05-06 10:52:52 -0400
commite0ebff53152a28aa3b2497d752e4c728a3c394bb (patch)
treec51f1767628a63dadf96569c740aa86d0519f6ac
parent2bb944d9038e262d483d2b938292997b7da6288c (diff)
downloadm2e-core-e0ebff53152a28aa3b2497d752e4c728a3c394bb.tar.gz
m2e-core-e0ebff53152a28aa3b2497d752e4c728a3c394bb.tar.xz
m2e-core-e0ebff53152a28aa3b2497d752e4c728a3c394bb.zip
cleanup: removed deprecated method
Change-Id: Ia04f7eb2332d4af27f5d3e0595393c5a1ab178f4 Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
-rw-r--r--org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchUtils.java20
1 files changed, 0 insertions, 20 deletions
diff --git a/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchUtils.java b/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchUtils.java
index c10804db..dc7273b5 100644
--- a/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchUtils.java
+++ b/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchUtils.java
@@ -12,15 +12,12 @@
package org.eclipse.m2e.internal.launch;
import java.io.File;
-import java.net.URI;
-import java.net.URL;
import java.util.Collections;
import java.util.List;
import org.osgi.framework.Bundle;
import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.debug.core.ILaunchConfiguration;
@@ -65,23 +62,6 @@ public class MavenLaunchUtils {
}
/**
- * Returns bundle entry path on local filesystem.
- *
- * @deprecated this method is not used by m2e internally and will be removed before 1.6
- */
- public static String getBundleEntry(Bundle bundle, String entryPath) throws CoreException {
- URL url = bundle.getEntry(entryPath);
- try {
- URL fileURL = FileLocator.toFileURL(url);
- // MNGECLIPSE-804 workaround for spaces in the original path
- URI fileURI = new URI(fileURL.getProtocol(), fileURL.getHost(), fileURL.getPath(), fileURL.getQuery());
- return new File(fileURI).getCanonicalPath();
- } catch(Exception ex) {
- throw new CoreException(new Status(IStatus.ERROR, MavenLaunchConstants.PLUGIN_ID, -1, ex.getMessage(), ex));
- }
- }
-
- /**
* @since 1.4
*/
public static String quote(String string) {

Back to the top