X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fgraph%2Fport.c;fp=lib%2Fgraph%2Fport.c;h=a04049a1cf4616f831764511f90ba190d4ae582b;hb=4725a2013cb518374822ccb490610b45f74dbdbf;hp=86d01b92ac82e0bc1ee6023772e375bc8629468c;hpb=13d428598c645803f8745b6db2c6dc2cde5e33c4;p=babeltrace.git diff --git a/lib/graph/port.c b/lib/graph/port.c index 86d01b92..a04049a1 100644 --- a/lib/graph/port.c +++ b/lib/graph/port.c @@ -167,29 +167,6 @@ end: return ret; } -enum bt_self_component_port_status bt_self_component_port_remove_from_component( - struct bt_self_component_port *self_port) -{ - struct bt_port *port = (void *) self_port; - struct bt_component *comp = NULL; - - BT_ASSERT_PRE_NON_NULL(port, "Port"); - BT_ASSERT_PRE(port_connection_iterators_are_finalized(port), - "At least one message iterator using this port has the wrong state."); - comp = (void *) bt_object_borrow_parent(&port->base); - if (!comp) { - BT_LIB_LOGV("Port already removed from its component: %!+p", - port); - goto end; - } - - /* bt_component_remove_port() logs details */ - bt_component_remove_port(comp, port); - -end: - return BT_SELF_PORT_STATUS_OK; -} - bt_bool bt_port_is_connected(const struct bt_port *port) { BT_ASSERT_PRE_NON_NULL(port, "Port");