X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fgraph%2Fsink.c;h=a2ab200690ff7f1a8e37f776debb03e6cdf075f6;hb=b95e1e3a30343ebce5aab61018ea54ac48da1c94;hp=e99d111f4309fa87711fe4331a47bad66b5fd0f4;hpb=ef2f7566ae812fd52ab383be69b59fa16f6d75da;p=babeltrace.git diff --git a/lib/graph/sink.c b/lib/graph/sink.c index e99d111f..a2ab2006 100644 --- a/lib/graph/sink.c +++ b/lib/graph/sink.c @@ -32,30 +32,6 @@ #include #include -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) {