From: Philippe Proulx Date: Tue, 19 Mar 2019 18:34:05 +0000 (-0400) Subject: lib: remove bt_connection_is_ended() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=0198ae432bf296e8228fde49c0bbf40d1ed998a1;p=deliverable%2Fbabeltrace.git lib: remove bt_connection_is_ended() This function is not needed anymore because connections cannot end. Signed-off-by: Philippe Proulx --- diff --git a/include/babeltrace/graph/connection-const.h b/include/babeltrace/graph/connection-const.h index 137be8d14..0d2724adf 100644 --- a/include/babeltrace/graph/connection-const.h +++ b/include/babeltrace/graph/connection-const.h @@ -37,8 +37,6 @@ extern const bt_port_input *bt_connection_borrow_downstream_port_const( extern const bt_port_output *bt_connection_borrow_upstream_port_const( const bt_connection *connection); -extern bt_bool bt_connection_is_ended(const bt_connection *connection); - extern void bt_connection_get_ref(const bt_connection *connection); extern void bt_connection_put_ref(const bt_connection *connection); diff --git a/lib/graph/connection.c b/lib/graph/connection.c index 965c5eaa0..7324b40a1 100644 --- a/lib/graph/connection.c +++ b/lib/graph/connection.c @@ -251,11 +251,6 @@ void bt_connection_remove_iterator(struct bt_connection *conn, try_remove_connection_from_graph(conn); } -bt_bool bt_connection_is_ended(const struct bt_connection *connection) -{ - return !connection->downstream_port && !connection->upstream_port; -} - void bt_connection_get_ref(const struct bt_connection *connection) { bt_object_get_ref(connection);