X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fgraph%2Fsource.c;h=9682570807349f626f0eb84b90e5e0737d2c68ad;hb=b95e1e3a30343ebce5aab61018ea54ac48da1c94;hp=566d1c0eb0229df36712a2bfccec2c208fcffd5b;hpb=ef2f7566ae812fd52ab383be69b59fa16f6d75da;p=babeltrace.git diff --git a/lib/graph/source.c b/lib/graph/source.c index 566d1c0e..96825708 100644 --- a/lib/graph/source.c +++ b/lib/graph/source.c @@ -34,31 +34,6 @@ #include #include -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) {