Refactory: remove unused classes, imports, fields and methods.
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / parser / Parser.java
index 485d208..08ba9c4 100644 (file)
@@ -93,10 +93,10 @@ public class Parser implements ITerminalSymbols, CompilerModifiers,
                this.initializeScanner();
        }
 
-       public void setFileToParse(IFile fileToParse) {
-               this.token = TokenNameEOF;
-               this.initializeScanner();
-       }
+//     public void setFileToParse(IFile fileToParse) {
+//             this.token = TokenNameEOF;
+//             this.initializeScanner();
+//     }
 
        /**
         * ClassDeclaration Constructor.
@@ -106,26 +106,26 @@ public class Parser implements ITerminalSymbols, CompilerModifiers,
         *            Description of Parameter
         * @see
         */
-       public Parser(IFile fileToParse) {
-               // if (keywordMap == null) {
-               // keywordMap = new HashMap();
-               // for (int i = 0; i < PHP_KEYWORS.length; i++) {
-               // keywordMap.put(PHP_KEYWORS[i], new Integer(PHP_KEYWORD_TOKEN[i]));
-               // }
-               // }
-               // this.currentPHPString = 0;
-               // PHPParserSuperclass.fileToParse = fileToParse;
-               // this.phpList = null;
-               this.includesList = null;
-               // this.str = "";
-               this.token = TokenNameEOF;
-               // this.chIndx = 0;
-               // this.rowCount = 1;
-               // this.columnCount = 0;
-               // this.phpEnd = false;
-               // getNextToken();
-               this.initializeScanner();
-       }
+//     public Parser(IFile fileToParse) {
+//             // if (keywordMap == null) {
+//             // keywordMap = new HashMap();
+//             // for (int i = 0; i < PHP_KEYWORS.length; i++) {
+//             // keywordMap.put(PHP_KEYWORS[i], new Integer(PHP_KEYWORD_TOKEN[i]));
+//             // }
+//             // }
+//             // this.currentPHPString = 0;
+//             // PHPParserSuperclass.fileToParse = fileToParse;
+//             // this.phpList = null;
+//             this.includesList = null;
+//             // this.str = "";
+//             this.token = TokenNameEOF;
+//             // this.chIndx = 0;
+//             // this.rowCount = 1;
+//             // this.columnCount = 0;
+//             // this.phpEnd = false;
+//             // getNextToken();
+//             this.initializeScanner();
+//     }
 
        public void initializeScanner() {
                this.scanner = new Scanner(
@@ -4945,17 +4945,17 @@ public class Parser implements ITerminalSymbols, CompilerModifiers,
        // return anomaliesDetected;
        // }
        // }
-       protected void pushOnAstLengthStack(int pos) {
-               try {
-                       astLengthStack[++astLengthPtr] = pos;
-               } catch (IndexOutOfBoundsException e) {
-                       int oldStackLength = astLengthStack.length;
-                       int[] oldPos = astLengthStack;
-                       astLengthStack = new int[oldStackLength + StackIncrement];
-                       System.arraycopy(oldPos, 0, astLengthStack, 0, oldStackLength);
-                       astLengthStack[astLengthPtr] = pos;
-               }
-       }
+//     protected void pushOnAstLengthStack(int pos) {
+//             try {
+//                     astLengthStack[++astLengthPtr] = pos;
+//             } catch (IndexOutOfBoundsException e) {
+//                     int oldStackLength = astLengthStack.length;
+//                     int[] oldPos = astLengthStack;
+//                     astLengthStack = new int[oldStackLength + StackIncrement];
+//                     System.arraycopy(oldPos, 0, astLengthStack, 0, oldStackLength);
+//                     astLengthStack[astLengthPtr] = pos;
+//             }
+//     }
 
        protected void pushOnAstStack(ASTNode node) {
                /*