Removes unused method in InternalPlatform

InternalPlatform is not API (even the Javadoc for the method says so),
so we can simply remove the method

Change-Id: Idc077c7cbff3c38f0dc269b1a46e496c395a801d
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
diff --git a/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/InternalPlatform.java b/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/InternalPlatform.java
index 5e1280e..17d3933 100644
--- a/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/InternalPlatform.java
+++ b/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/InternalPlatform.java
@@ -15,8 +15,7 @@
  *******************************************************************************/
 package org.eclipse.core.internal.runtime;
 
-import java.io.*;
-import java.net.MalformedURLException;
+import java.io.File;
 import java.net.URL;
 import java.util.*;
 import org.eclipse.core.internal.preferences.exchange.ILegacyPreferences;
@@ -67,8 +66,6 @@
 	private String password = ""; //$NON-NLS-1$
 	private static final String PASSWORD = "-password"; //$NON-NLS-1$
 
-	private static final String PLUGIN_PATH = ".plugin-path"; //$NON-NLS-1$
-
 	public static final String PROP_APPLICATION = "eclipse.application"; //$NON-NLS-1$
 	public static final String PROP_ARCH = "osgi.arch"; //$NON-NLS-1$
 	public static final String PROP_CONFIG_AREA = "osgi.configuration.area"; //$NON-NLS-1$
@@ -408,50 +405,6 @@
 		return platformTracker == null ? null : platformTracker.getService();
 	}
 
-	//TODO I guess it is now time to get rid of that
-	/*
-	 * This method is retained for R1.0 compatibility because it is defined as API.
-	 * Its function matches the API description (returns <code>null</code> when
-	 * argument URL is <code>null</code> or cannot be read).
-	 */
-	public URL[] getPluginPath(URL pluginPathLocation /*R1.0 compatibility*/
-	) {
-		InputStream input = null;
-		// first try and see if the given plugin path location exists.
-		if (pluginPathLocation == null)
-			return null;
-		try {
-			input = pluginPathLocation.openStream();
-		} catch (IOException e) {
-			//fall through
-		}
-
-		// if the given path was null or did not exist, look for a plugin path
-		// definition in the install location.
-		if (input == null)
-			try {
-				URL url = new URL("platform:/base/" + PLUGIN_PATH); //$NON-NLS-1$
-				input = url.openStream();
-			} catch (IOException e) {
-				//fall through
-			}
-
-		// nothing was found at the supplied location or in the install location
-		if (input == null)
-			return null;
-		// if we found a plugin path definition somewhere so read it and close the location.
-		URL[] result = null;
-		try {
-			try {
-				result = readPluginPath(input);
-			} finally {
-				input.close();
-			}
-		} catch (IOException e) {
-			//let it return null on failure to read
-		}
-		return result;
-	}
 
 	public IPreferencesService getPreferencesService() {
 		return preferencesTracker == null ? null : (IPreferencesService) preferencesTracker.getService();
@@ -654,30 +607,6 @@
 		}
 	}
 
-	private URL[] readPluginPath(InputStream input) {
-		Properties ini = new Properties();
-		try {
-			ini.load(input);
-		} catch (IOException e) {
-			return null;
-		}
-		List<URL>result = new ArrayList<>(5);
-		for (Enumeration<?> groups = ini.propertyNames(); groups.hasMoreElements();) {
-			String group = (String) groups.nextElement();
-			for (StringTokenizer entries = new StringTokenizer(ini.getProperty(group), ";"); entries.hasMoreElements();) { //$NON-NLS-1$
-				String entry = (String) entries.nextElement();
-				if (!entry.equals("")) //$NON-NLS-1$
-					try {
-						result.add(new URL(entry));
-					} catch (MalformedURLException e) {
-						//intentionally ignore bad URLs
-						System.err.println("Ignoring plugin: " + entry); //$NON-NLS-1$
-					}
-			}
-		}
-		return result.toArray(new URL[result.size()]);
-	}
-
 	/**
 	 * @see Platform#removeLogListener(ILogListener)
 	 */