X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/builder/State.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/builder/State.java index 4d60110..67b551f 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/builder/State.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/builder/State.java @@ -20,7 +20,7 @@ import net.sourceforge.phpdt.internal.core.util.SimpleLookupTable; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IResource; import org.eclipse.core.resources.IResourceDelta; -import org.eclipse.core.runtime.IPath; +//import org.eclipse.core.runtime.IPath; public class State { // NOTE: this state cannot contain types that are not defined in this @@ -45,7 +45,7 @@ public class State { SimpleLookupTable structuralBuildTimes; - private String[] knownPackageNames; // of the form "p1/p2" + //private String[] knownPackageNames; // of the form "p1/p2" static final byte VERSION = 0x0007; @@ -59,7 +59,7 @@ public class State { } protected State(PHPBuilder javaBuilder) { - this.knownPackageNames = null; + //this.knownPackageNames = null; this.javaProjectName = javaBuilder.currentProject.getName(); this.sourceLocations = javaBuilder.nameEnvironment.sourceLocations; // this.binaryLocations = javaBuilder.nameEnvironment.binaryLocations; @@ -73,7 +73,7 @@ public class State { void copyFrom(State lastState) { // try { - this.knownPackageNames = null; + //this.knownPackageNames = null; this.buildNumber = lastState.buildNumber + 1; this.lastStructuralBuildTime = lastState.lastStructuralBuildTime; // this.references = (SimpleLookupTable) lastState.references.clone(); @@ -179,7 +179,7 @@ public class State { removePackage(children[i]); return; case IResource.FILE: - IPath typeLocatorPath = resource.getProjectRelativePath(); + //IPath typeLocatorPath = resource.getProjectRelativePath(); // if // (ProjectPrefUtil.isJavaFileName(typeLocatorPath.lastSegment())) // removeLocator(typeLocatorPath.toString()); @@ -320,18 +320,18 @@ public class State { return newState; } - private static char[][] readNames(DataInputStream in) throws IOException { - int length = in.readInt(); - char[][] names = new char[length][]; - for (int i = 0; i < length; i++) { - int nLength = in.readInt(); - char[] name = new char[nLength]; - for (int j = 0; j < nLength; j++) - name[j] = in.readChar(); - names[i] = name; - } - return names; - } +// private static char[][] readNames(DataInputStream in) throws IOException { +// int length = in.readInt(); +// char[][] names = new char[length][]; +// for (int i = 0; i < length; i++) { +// int nLength = in.readInt(); +// char[] name = new char[nLength]; +// for (int j = 0; j < nLength; j++) +// name[j] = in.readChar(); +// names[i] = name; +// } +// return names; +// } void tagAsNoopBuild() { this.buildNumber = -1; // tag the project since it has no source @@ -548,18 +548,18 @@ public class State { // } } - private void writeNames(char[][] names, DataOutputStream out) - throws IOException { - int length = names == null ? 0 : names.length; - out.writeInt(length); - for (int i = 0; i < length; i++) { - char[] name = names[i]; - int nLength = name.length; - out.writeInt(nLength); - for (int j = 0; j < nLength; j++) - out.writeChar(name[j]); - } - } +// private void writeNames(char[][] names, DataOutputStream out) +// throws IOException { +// int length = names == null ? 0 : names.length; +// out.writeInt(length); +// for (int i = 0; i < length; i++) { +// char[] name = names[i]; +// int nLength = name.length; +// out.writeInt(nLength); +// for (int j = 0; j < nLength; j++) +// out.writeChar(name[j]); +// } +// } /** * Returns a string representation of the receiver.