Refactory: remove unused classes, imports, fields and methods.
authorincastrix <incastrix>
Wed, 23 Dec 2009 17:28:07 +0000 (17:28 +0000)
committerincastrix <incastrix>
Wed, 23 Dec 2009 17:28:07 +0000 (17:28 +0000)
net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/InterpreterRunner.java
net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/PHPSourceLocator.java

index fe70c29..a333027 100644 (file)
@@ -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 "
index 4c0c61d..b5a63e3 100644 (file)
@@ -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, "");