text: Remove stream_timestamps hashtable
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 12 Sep 2016 19:07:19 +0000 (15:07 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 27 May 2017 18:09:06 +0000 (14:09 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
plugins/text/text.c

index fc32c75e90d57e027249c7411fb1469c6ff9cd3c..a318bfbf8b861580ce10ab2b4399ca05cf6c65d1 100644 (file)
@@ -55,18 +55,9 @@ const char *loglevel_str [] = {
        [LOGLEVEL_DEBUG] =              "TRACE_DEBUG",
 };
 
-static
-void destroy_stream_timestamp(void *stream_timestamp)
-{
-       g_free(stream_timestamp);
-}
-
 static
 void destroy_text_data(struct text_component *text)
 {
-       if (text->stream_timestamps) {
-               g_hash_table_destroy(text->stream_timestamps);
-       }
        g_free(text);
 }
 
@@ -79,17 +70,8 @@ struct text_component *create_text(void)
        if (!text) {
                goto end;
        }
-
-       text->stream_timestamps = g_hash_table_new_full(
-                       NULL, NULL, NULL, destroy_stream_timestamp);
-       if (!text->stream_timestamps) {
-               goto error;
-       }
 end:
        return text;
-error:
-       destroy_text_data(text);
-       return NULL;
 }
 
 static void destroy_text(struct bt_component *component)
@@ -123,7 +105,6 @@ enum bt_component_status handle_notification(struct bt_component *component,
                struct bt_ctf_event *event = bt_notification_event_get_event(
                                notification);
 
-               puts("\t<event>");
                if (!event) {
                        ret = BT_COMPONENT_STATUS_ERROR;
                        goto end;
This page took 0.026171 seconds and 4 git commands to generate.