From e214267fc7e2f2fcd0b20af48db0d7de98217628 Mon Sep 17 00:00:00 2001 From: incastrix Date: Wed, 23 Dec 2009 17:28:07 +0000 Subject: [PATCH] Refactory: remove unused classes, imports, fields and methods. --- .../internal/launching/InterpreterRunner.java | 30 ++++++++++---------- .../phpdt/internal/launching/PHPSourceLocator.java | 10 +++--- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/InterpreterRunner.java b/net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/InterpreterRunner.java index fe70c29..a333027 100644 --- a/net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/InterpreterRunner.java +++ b/net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/InterpreterRunner.java @@ -2,10 +2,10 @@ package net.sourceforge.phpdt.internal.launching; import java.io.File; import java.io.IOException; -import java.util.Iterator; +//import java.util.Iterator; import java.util.Map; -import net.sourceforge.phpdt.internal.core.JavaProject; +//import net.sourceforge.phpdt.internal.core.JavaProject; import org.eclipse.core.resources.IProject; import org.eclipse.core.runtime.IPath; @@ -108,19 +108,19 @@ public class InterpreterRunner { } - protected String renderLoadPath(InterpreterRunnerConfiguration configuration) { - StringBuffer loadPath = new StringBuffer(); - - JavaProject project = configuration.getProject(); - addToLoadPath(loadPath, project.getProject()); - - Iterator referencedProjects = project.getReferencedProjects() - .iterator(); - while (referencedProjects.hasNext()) - addToLoadPath(loadPath, (IProject) referencedProjects.next()); - - return loadPath.toString(); - } +// protected String renderLoadPath(InterpreterRunnerConfiguration configuration) { +// StringBuffer loadPath = new StringBuffer(); +// +// JavaProject project = configuration.getProject(); +// addToLoadPath(loadPath, project.getProject()); +// +// Iterator referencedProjects = project.getReferencedProjects() +// .iterator(); +// while (referencedProjects.hasNext()) +// addToLoadPath(loadPath, (IProject) referencedProjects.next()); +// +// return loadPath.toString(); +// } protected void addToLoadPath(StringBuffer loadPath, IProject project) { loadPath.append(" -I " diff --git a/net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/PHPSourceLocator.java b/net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/PHPSourceLocator.java index 4c0c61d..b5a63e3 100644 --- a/net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/PHPSourceLocator.java +++ b/net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/PHPSourceLocator.java @@ -27,7 +27,7 @@ import org.eclipse.ui.PlatformUI; import org.eclipse.ui.part.FileEditorInput; public class PHPSourceLocator implements IPersistableSourceLocator, ISourcePresentation { - private String absoluteWorkingDirectory; + //private String absoluteWorkingDirectory; private Map pathMap = null; private boolean remoteDebug; private IPath remoteSourcePath; @@ -37,9 +37,9 @@ public class PHPSourceLocator implements IPersistableSourceLocator, ISourcePrese } - public String getAbsoluteWorkingDirectory() { - return absoluteWorkingDirectory; - } +// public String getAbsoluteWorkingDirectory() { +// return absoluteWorkingDirectory; +// } /** * @see org.eclipse.debug.core.model.IPersistableSourceLocator#getMemento() @@ -58,7 +58,7 @@ public class PHPSourceLocator implements IPersistableSourceLocator, ISourcePrese * @see org.eclipse.debug.core.model.IPersistableSourceLocator#initializeDefaults(ILaunchConfiguration) */ public void initializeDefaults (ILaunchConfiguration configuration) throws CoreException { - this.absoluteWorkingDirectory = configuration.getAttribute (PHPLaunchConfigurationAttribute.WORKING_DIRECTORY, ""); + //this.absoluteWorkingDirectory = configuration.getAttribute (PHPLaunchConfigurationAttribute.WORKING_DIRECTORY, ""); this.remoteDebug = configuration.getAttribute (PHPLaunchConfigurationAttribute.REMOTE_DEBUG,false); this.pathMap = configuration.getAttribute (PHPLaunchConfigurationAttribute.FILE_MAP, (Map)null); this.projectName = configuration.getAttribute (PHPLaunchConfigurationAttribute.PROJECT_NAME, ""); -- 1.7.1