From: Philippe Proulx Date: Thu, 25 May 2017 06:36:25 +0000 (-0400) Subject: Remove bt_component_set_name() X-Git-Tag: v2.0.0-pre1~189 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=80496fb61905199beee8c27385dfded56ff6bd1d Remove bt_component_set_name() This is not used anywhere, and there's not even a public declaration for it. Plus a component object has no frozen property, and for obvious reasons we can't change the name of a component once it's part of a graph. All the properties of a component must be set at creation time. Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/lib/graph/component.c b/lib/graph/component.c index 9ed59944..5e6a3303 100644 --- a/lib/graph/component.c +++ b/lib/graph/component.c @@ -330,21 +330,6 @@ end: return ret; } -enum bt_component_status bt_component_set_name(struct bt_component *component, - const char *name) -{ - enum bt_component_status ret = BT_COMPONENT_STATUS_OK; - - if (!component || !name || name[0] == '\0') { - ret = BT_COMPONENT_STATUS_INVALID; - goto end; - } - - g_string_assign(component->name, name); -end: - return ret; -} - struct bt_component_class *bt_component_get_class( struct bt_component *component) {