Remove useless component/iterator validation functions
[babeltrace.git] / lib / graph / component.c
index 7a5c382a5f8daeb9951fdada33e096d89872be67..9fad68ac968074a71c0aeb6c017c954599e85e25 100644 (file)
@@ -65,14 +65,6 @@ void (*component_destroy_funcs[])(struct bt_component *) = {
        [BT_COMPONENT_CLASS_TYPE_FILTER] = bt_component_filter_destroy,
 };
 
-static
-enum bt_component_status (* const component_validation_funcs[])(
-               struct bt_component *) = {
-       [BT_COMPONENT_CLASS_TYPE_SOURCE] = bt_component_source_validate,
-       [BT_COMPONENT_CLASS_TYPE_SINK] = bt_component_sink_validate,
-       [BT_COMPONENT_CLASS_TYPE_FILTER] = bt_component_filter_validate,
-};
-
 static
 void bt_component_destroy(struct bt_object *obj)
 {
@@ -350,14 +342,6 @@ struct bt_component *bt_component_create_with_init_method_data(
                }
        }
 
-       ret = component_validation_funcs[type](component);
-       if (ret != BT_COMPONENT_STATUS_OK) {
-               BT_LOGW("Component is invalid: status=%s",
-                       bt_component_status_string(ret));
-               BT_PUT(component);
-               goto end;
-       }
-
        BT_LOGD_STR("Freezing component class.");
        bt_component_class_freeze(component->class);
        BT_LOGD("Created component from component class: "
This page took 0.022836 seconds and 4 git commands to generate.