X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fgraph%2Ffilter.c;h=8d2964e1b68f86f315e09c12f3c71077371b5961;hb=b95e1e3a30343ebce5aab61018ea54ac48da1c94;hp=aaab3b78c91f6b7b0c9a20775f384521e00e5741;hpb=ef2f7566ae812fd52ab383be69b59fa16f6d75da;p=babeltrace.git diff --git a/lib/graph/filter.c b/lib/graph/filter.c index aaab3b78..8d2964e1 100644 --- a/lib/graph/filter.c +++ b/lib/graph/filter.c @@ -54,32 +54,6 @@ end: return filter ? &filter->parent : NULL; } -BT_HIDDEN -enum bt_component_status bt_component_filter_validate( - struct bt_component *component) -{ - enum bt_component_status ret = BT_COMPONENT_STATUS_OK; - - if (!component) { - ret = BT_COMPONENT_STATUS_INVALID; - goto end; - } - - if (!component->class) { - ret = BT_COMPONENT_STATUS_INVALID; - goto end; - } - - if (component->class->type != BT_COMPONENT_CLASS_TYPE_FILTER) { - ret = BT_COMPONENT_STATUS_INVALID; - goto end; - } - - /* Enforce iterator limits. */ -end: - return ret; -} - int64_t bt_component_filter_get_input_port_count( struct bt_component *component) {