Register new file extensions for the php-editor:
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / DocumentElementParser.java
index b2f8ef1..488e618 100644 (file)
@@ -15,8 +15,6 @@ import net.sourceforge.phpdt.internal.compiler.problem.AbortCompilation;
 import net.sourceforge.phpdt.internal.compiler.problem.ProblemReporter;
 import net.sourceforge.phpeclipse.internal.compiler.ast.CompilationUnitDeclaration;
 
-import org.eclipse.core.resources.IResource;
-
 /*
  * A document element parser extracts structural information from a piece of source, providing detailed source positions info.
  * 
@@ -1027,7 +1025,7 @@ public class DocumentElementParser extends UnitParser {
     try {
       initialize();
       goForCompilationUnit();
-      referenceContext = compilationUnit = compilationUnit = new CompilationUnitDeclaration(problemReporter(),
+      referenceContext = compilationUnit = new CompilationUnitDeclaration(problemReporter(),
           new CompilationResult(unit, 0, 0, 10), //this.options.maxProblemsPerUnit),
           regionSource.length);
       scanner.resetTo(0, regionSource.length);