From 4cab40d887e8f6c3877a17da432ce98e22d2cb88 Mon Sep 17 00:00:00 2001
From: incastrix <incastrix>
Date: Sun, 20 Sep 2009 00:25:58 +0000
Subject: [PATCH] Unused class.

---
 .../phpdt/externaltools/variable/UrlExpander.java  |   53 --------------------
 1 files changed, 0 insertions(+), 53 deletions(-)
 delete mode 100644 net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpdt/externaltools/variable/UrlExpander.java

diff --git a/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpdt/externaltools/variable/UrlExpander.java b/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpdt/externaltools/variable/UrlExpander.java
deleted file mode 100644
index 88c6d42..0000000
--- a/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpdt/externaltools/variable/UrlExpander.java
+++ /dev/null
@@ -1,53 +0,0 @@
-package net.sourceforge.phpdt.externaltools.variable;
-
-import net.sourceforge.phpeclipse.externaltools.ExternalToolsPlugin;
-import net.sourceforge.phpeclipse.ui.WebUI;
-
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.jface.preference.IPreferenceStore;
-
-/**
- * Expands a variable into a localhost/documentRoot URL string
- * <p>
- * This class is not intended to be extended by clients.
- * </p>
- */
-public class UrlExpander extends ResourceExpander { // implements
-													// IVariableTextExpander {
-
-	/**
-	 * Create an instance
-	 */
-	public UrlExpander() {
-		super();
-	}
-
-	/**
-	 * Returns a string representation to a localhost/documentRoot URL for the
-	 * given variable tag and value or <code>null</code>.
-	 * 
-	 * @see IVariableTextExpander#getText(String, String, ExpandVariableContext)
-	 */
-	public String getText(String varTag, String varValue,
-			ExpandVariableContext context) {
-		IPath path = getPath(varTag, varValue, context);
-		if (path != null) {
-			IPreferenceStore store = ExternalToolsPlugin.getDefault()
-					.getPreferenceStore();
-			String localhostURL = path.toString();
-			String lowerCaseFileName = localhostURL.toLowerCase();
-			String documentRoot = store.getString(WebUI.PHP_DOCUMENTROOT_PREF);
-			documentRoot = documentRoot.replace('\\', '/');
-			documentRoot = documentRoot.toLowerCase();
-
-			if (lowerCaseFileName.startsWith(documentRoot)) {
-				localhostURL = localhostURL.substring(documentRoot.length());
-				localhostURL = store.getString(WebUI.PHP_LOCALHOST_PREF)
-						+ localhostURL;
-			}
-			return localhostURL;
-		}
-		return "<no file selected>";
-	}
-
-}
-- 
1.7.1