Remove useless component/iterator validation functions
[babeltrace.git] / lib / graph / source.c
index 566d1c0eb0229df36712a2bfccec2c208fcffd5b..9682570807349f626f0eb84b90e5e0737d2c68ad 100644 (file)
 #include <babeltrace/graph/notification-iterator.h>
 #include <babeltrace/graph/notification-iterator-internal.h>
 
-BT_HIDDEN
-enum bt_component_status bt_component_source_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_SOURCE) {
-               ret = BT_COMPONENT_STATUS_INVALID;
-               goto end;
-       }
-
-end:
-       return ret;
-}
-
 BT_HIDDEN
 void bt_component_source_destroy(struct bt_component *component)
 {
This page took 0.02295 seconds and 4 git commands to generate.