# HG changeset patch # User Thomas Wuerthinger # Date 1363538189 -3600 # Node ID 4f8143c9947a361786eb72e16b54a8abc16d7452 # Parent 3d840eec7f2be4f6f81dad8dc47b8b186eab8271 Remove unused code in LabelRef. diff -r 3d840eec7f2b -r 4f8143c9947a graal/com.oracle.graal.lir/src/com/oracle/graal/lir/LabelRef.java --- 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.