Eliminated unused classes
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / IfStatement.java
diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/IfStatement.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/IfStatement.java
deleted file mode 100644 (file)
index e1682c9..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-package net.sourceforge.phpdt.internal.compiler.ast;
-
-/**
- * @author Matthieu Casanova
- */
-public class IfStatement extends Statement {
-
-  public Expression condition;
-  public Statement statement;
-  public ElseIf[] elseifs;
-  public Else els;
-
-  /**
-   * Create a new If statement
-   * @param condition the condition
-   * @param statement a statement or a block of statements
-   * @param elseifs the elseifs
-   * @param els the else (or null)
-   * @param sourceStart the starting position
-   * @param sourceEnd the ending offset
-   */
-  public IfStatement(Expression condition,
-                     Statement statement,
-                     ElseIf[] elseifs,
-                     Else els,
-                     int sourceStart,
-                     int sourceEnd) {
-    super(sourceStart, sourceEnd);
-    this.condition = condition;
-    this.statement = statement;
-    this.elseifs = elseifs;
-    this.els = els;
-  }
-
-  /**
-   * Return the object into String.
-   * @param tab how many tabs (not used here
-   * @return a String
-   */
-  public String toString(int tab) {
-    final StringBuffer buff = new StringBuffer(tabString(tab));
-    buff.append("if (");
-    buff.append(condition.toStringExpression()).append(") ");
-    for (int i = 0; i < elseifs.length; i++) {
-      ElseIf elseif = elseifs[i];
-      buff.append(elseif.toString(tab+1));
-      buff.append('\n');
-    }
-    if (els != null) {
-      buff.append(els.toString(tab+1));
-      buff.append('\n');
-    }
-    return buff.toString();
-  }
-}