From: Simon Marchi Date: Wed, 17 May 2023 19:38:27 +0000 (-0400) Subject: lib: remove TODO in add_port X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=5739a4450dc15768cb75210e1419eeb617304c12 lib: remove TODO in add_port I think that the {input,output}-port-name-is-unique assertions basically check that this TODO is about. Change-Id: Ib5029697114f46fd5485d902068ca912b658ebc9 Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/10038 Reviewed-by: Philippe Proulx Tested-by: jenkins --- diff --git a/src/lib/graph/component.c b/src/lib/graph/component.c index 95df2dff..e73a1c7a 100644 --- a/src/lib/graph/component.c +++ b/src/lib/graph/component.c @@ -236,8 +236,6 @@ enum bt_self_component_add_port_status add_port( "Component's graph is already configured: " "%![comp-]+c, %![graph-]+g", component, graph); - // TODO: Validate that the name is not already used. - BT_LIB_LOGI("Adding port to component: %![comp-]+c, " "port-type=%s, port-name=\"%s\"", component, bt_port_type_string(port_type), name);