common: move bt_component_class_type_string here, use it more
[babeltrace.git] / src / lib / graph / component-class.h
index ac51bcfb064e600b7946211bfa1cc512a0dccaf1..17000909e2535f427a873ef1c85bdcae73eb7acd 100644 (file)
@@ -98,21 +98,6 @@ void _bt_component_class_freeze(
 # define bt_component_class_freeze(_cc)
 #endif
 
-static inline
-const char *bt_component_class_type_string(enum bt_component_class_type type)
-{
-       switch (type) {
-       case BT_COMPONENT_CLASS_TYPE_SOURCE:
-               return "SOURCE";
-       case BT_COMPONENT_CLASS_TYPE_SINK:
-               return "SINK";
-       case BT_COMPONENT_CLASS_TYPE_FILTER:
-               return "FILTER";
-       default:
-               return "(unknown)";
-       }
-}
-
 static inline
 bool bt_component_class_has_message_iterator_class(
        struct bt_component_class *component_class)
This page took 0.024904 seconds and 4 git commands to generate.