From f4f5c8ca2d211d747377a21f5d55123875ffdc7f Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Tue, 19 Mar 2019 14:34:05 -0400 Subject: [PATCH] lib: remove bt_connection_is_ended() This function is not needed anymore because connections cannot end. Signed-off-by: Philippe Proulx --- include/babeltrace/graph/connection-const.h | 2 -- lib/graph/connection.c | 5 ----- 2 files changed, 7 deletions(-) diff --git a/include/babeltrace/graph/connection-const.h b/include/babeltrace/graph/connection-const.h index 137be8d1..0d2724ad 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 965c5eaa..7324b40a 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); -- 2.34.1