[tuples] Remove superfluous function
Diego Novillo
dnovillo@google.com
Thu Oct 18 16:47:00 GMT 2007
gsi_delink is not used and gsi_remove is more complete. This patch
removes gsi_delink to avoid future confusion.
* gimple-iterator.c (gsi_delink): Remove.
* gimple.h (gsi_delink): Remove.
Index: gimple-iterator.c
===================================================================
--- gimple-iterator.c (revision 129438)
+++ gimple-iterator.c (working copy)
@@ -179,30 +179,6 @@ gsi_link_after (gimple_stmt_iterator *i,
}
-/* Remove a stmt from the sequence. The iterator is updated to point to the
- next stmt. */
-
-void
-gsi_delink (gimple_stmt_iterator *i)
-{
- gimple cur, next, prev;
-
- cur = i->stmt;
- next = gimple_next (cur);
- prev = gimple_prev (cur);
-
- if (prev)
- gimple_set_next (prev, next);
- else
- gimple_seq_set_first (i->seq, next);
- if (next)
- gimple_set_prev (next, prev);
- else
- gimple_seq_set_last (i->seq, prev);
-
- i->stmt = next;
-}
-
/* Move all statements in the sequence after I to a new sequence. Return this
new sequence. I itself is unchanged. */
Index: gimple.h
===================================================================
--- gimple.h (revision 129438)
+++ gimple.h (working copy)
@@ -2533,7 +2533,6 @@ void gsi_link_before (gimple_stmt_iterat
void gsi_link_seq_after (gimple_stmt_iterator *, gimple_seq,
enum gsi_iterator_update);
void gsi_link_after (gimple_stmt_iterator *, gimple, enum gsi_iterator_update);
-void gsi_delink (gimple_stmt_iterator *);
gimple_seq gsi_split_seq_after (const gimple_stmt_iterator *);
gimple_seq gsi_split_seq_before (gimple_stmt_iterator *);
void gsi_replace (gimple_stmt_iterator *, gimple, bool);
More information about the Gcc-patches
mailing list