From 80496fb61905199beee8c27385dfded56ff6bd1d Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Thu, 25 May 2017 02:36:25 -0400 Subject: [PATCH] Remove bt_component_set_name() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- lib/graph/component.c | 15 --------------- 1 file changed, 15 deletions(-) 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) { -- 2.34.1