changeset 8322:4f8143c9947a

Remove unused code in LabelRef.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Sun, 17 Mar 2013 17:36:29 +0100
parents 3d840eec7f2b
children 0fd97e8f511e
files graal/com.oracle.graal.lir/src/com/oracle/graal/lir/LabelRef.java
diffstat 1 files changed, 1 insertions(+), 27 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/LabelRef.java	Sat Mar 16 21:55:55 2013 +0100
+++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/LabelRef.java	Sun Mar 17 17:36:29 2013 +0100
@@ -32,39 +32,13 @@
  * reference of block B from block A only via the tuple (A, successor-index-of-B), i.e., indirectly
  * by storing the index into the successor list of A. Note that therefore it is not allowed to
  * reorder the successor list!
- * 
- * Labels of out-of-line stubs can be referenced directly, therefore it is also possible to
- * construct a LabelRef for a Label directly via {@link #forLabel}.
  */
 public abstract class LabelRef {
 
     public abstract Label label();
 
     /**
-     * Returns a new reference to a statically defined label.
-     * 
-     * @param label The label that is always returned.
-     * @return The newly created label reference.
-     */
-    public static LabelRef forLabel(final Label label) {
-        return new LabelRef() {
-
-            @Override
-            public Label label() {
-                return label;
-            }
-
-            @Override
-            public String toString() {
-                return label.toString();
-            }
-        };
-    }
-
-    /**
-     * Returns a new reference to a successor of the given block. This allows to reference the given
-     * successor even when the successor list is modified between the creation of the reference and
-     * the call to {@link #forLabel(Label)}.
+     * Returns a new reference to a successor of the given block.
      * 
      * @param block The base block that contains the successor list.
      * @param suxIndex The index of the successor.