Remove the unused function get_irn_pred_pos().
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 4 Aug 2012 07:30:15 +0000 (09:30 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 8 Nov 2012 14:52:48 +0000 (15:52 +0100)
include/libfirm/irnode.h
ir/ir/irnode.c

index 53d613e..f49d9eb 100644 (file)
@@ -159,8 +159,6 @@ FIRM_API unsigned get_irn_opcode(const ir_node *node);
 FIRM_API const char *get_irn_opname(const ir_node *node);
 /** Returns the ident for a string representation of the opcode. */
 FIRM_API ident *get_irn_opident(const ir_node *node);
-/** If arg is an argument of the node, returns its position, -1 otherwise */
-FIRM_API int get_irn_pred_pos(ir_node *node, ir_node *arg);
 /** Returns the visited counter of a node. */
 FIRM_API ir_visited_t get_irn_visited(const ir_node *node);
 /** Sets the visited counter of a node. */
index 19739cf..30aee7e 100644 (file)
@@ -436,16 +436,6 @@ unsigned (get_irn_idx)(const ir_node *node)
        return get_irn_idx_(node);
 }
 
-int get_irn_pred_pos(ir_node *node, ir_node *arg)
-{
-       int i;
-       for (i = get_irn_arity(node) - 1; i >= 0; i--) {
-               if (get_irn_n(node, i) == arg)
-                       return i;
-       }
-       return -1;
-}
-
 ir_node *(get_nodes_block)(const ir_node *node)
 {
        return get_nodes_block_(node);