iredges: Remove the unused function get_irn_edge_kind().
authorChristoph Mallon <christoph.mallon@gmx.de>
Thu, 6 Dec 2012 05:53:56 +0000 (06:53 +0100)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 6 Dec 2012 05:53:56 +0000 (06:53 +0100)
ir/ir/iredges.c
ir/ir/iredges_t.h

index 4a9419a..7de4e7f 100644 (file)
@@ -168,22 +168,6 @@ void edges_init_graph_kind(ir_graph *irg, ir_edge_kind_t kind)
        }
 }
 
-const ir_edge_t *get_irn_edge_kind(const ir_node *src, int pos, ir_edge_kind_t kind)
-{
-       ir_graph *irg = get_irn_irg(src);
-       if (edges_activated_kind(irg, kind)) {
-               irg_edge_info_t *info = get_irg_edge_info(irg, kind);
-               ir_edge_t       key;
-
-               key.src = (ir_node *)src;
-               key.pos = pos;
-
-               return ir_edgeset_find(&info->edges, &key);
-       }
-
-       return NULL;
-}
-
 /**
  * Change the out count
  *
index 6820ce6..f5b4d3a 100644 (file)
@@ -166,17 +166,6 @@ static inline int get_edge_src_pos_(const ir_edge_t *edge)
        return edge->pos;
 }
 
-/**
- * Returns the edge object of an outgoing edge at a node.
- * @param  irn  The node at which the edge originates.
- * @param  pos  The position of the edge.
- * @param  kind The kind of the edge.
- * @return      The corresponding edge object or NULL,
- *              if no such edge exists.
- */
-FIRM_API const ir_edge_t *get_irn_edge_kind(const ir_node *irn,
-                                            int pos, ir_edge_kind_t kind);
-
 /**
  * Initialize the out edges.
  * This must be called before firm is initialized.