Remove useless component/iterator validation functions
[babeltrace.git] / lib / graph / filter.c
index aaab3b78c91f6b7b0c9a20775f384521e00e5741..8d2964e1b68f86f315e09c12f3c71077371b5961 100644 (file)
@@ -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)
 {
This page took 0.022635 seconds and 4 git commands to generate.