Remove bt_component_set_name()
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 25 May 2017 06:36:25 +0000 (02:36 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:44 +0000 (12:57 -0400)
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 <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lib/graph/component.c

index 9ed599448880b647d4d122fd9c50c2d8bb297cde..5e6a3303a1aa955770f0ddb4ab8117fb81d3490c 100644 (file)
@@ -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)
 {
This page took 0.024837 seconds and 4 git commands to generate.