Refactory: removed unnecessary local variables and imports.
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / core / JavaProject.java
index ab66e39..988a718 100644 (file)
@@ -414,8 +414,8 @@ public class JavaProject extends Openable implements IJavaProject,
                        throw newNotPresentException();
                }
 
-               IWorkspace workspace = ResourcesPlugin.getWorkspace();
-               IWorkspaceRoot wRoot = workspace.getRoot();
+               //IWorkspace workspace = ResourcesPlugin.getWorkspace();
+               //IWorkspaceRoot wRoot = workspace.getRoot();
                // cannot refresh cp markers on opening (emulate cp check on startup)
                // since can create deadlocks (see bug 37274)
                // IClasspathEntry[] resolvedClasspath =
@@ -1188,7 +1188,7 @@ public class JavaProject extends Openable implements IJavaProject,
 
                String extension = path.getFileExtension();
                if (extension == null) {
-                       String packageName = path.toString().replace(IPath.SEPARATOR, '.');
+                       //String packageName = path.toString().replace(IPath.SEPARATOR, '.');
 
                        // IPackageFragment[] pkgFragments =
                        // getNameLookup().findPackageFragments(packageName, false);
@@ -1651,7 +1651,7 @@ public class JavaProject extends Openable implements IJavaProject,
        public NameLookup newNameLookup(ICompilationUnit[] workingCopies)
                        throws JavaModelException {
 
-               JavaProjectElementInfo info = getJavaProjectElementInfo();
+               //JavaProjectElementInfo info = getJavaProjectElementInfo();
                // lock on the project info to avoid race condition while computing the
                // pkg fragment roots and package fragment caches
                // synchronized(info){