X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fgraph%2Fcomponent.c;h=9fad68ac968074a71c0aeb6c017c954599e85e25;hb=b95e1e3a30343ebce5aab61018ea54ac48da1c94;hp=7a5c382a5f8daeb9951fdada33e096d89872be67;hpb=ef2f7566ae812fd52ab383be69b59fa16f6d75da;p=babeltrace.git diff --git a/lib/graph/component.c b/lib/graph/component.c index 7a5c382a..9fad68ac 100644 --- a/lib/graph/component.c +++ b/lib/graph/component.c @@ -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: "