Remove useless component/iterator validation functions
[babeltrace.git] / lib / graph / sink.c
index e99d111f4309fa87711fe4331a47bad66b5fd0f4..a2ab200690ff7f1a8e37f776debb03e6cdf075f6 100644 (file)
 #include <babeltrace/graph/component-internal.h>
 #include <babeltrace/graph/notification.h>
 
-BT_HIDDEN
-enum bt_component_status bt_component_sink_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_SINK) {
-               ret = BT_COMPONENT_STATUS_INVALID;
-               goto end;
-       }
-end:
-       return ret;
-}
-
 BT_HIDDEN
 void bt_component_sink_destroy(struct bt_component *component)
 {
This page took 0.036387 seconds and 4 git commands to generate.