From: Jérémie Galarneau Date: Mon, 12 Sep 2016 19:07:19 +0000 (-0400) Subject: text: Remove stream_timestamps hashtable X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=91e6e0b835e1a534c2e35929aed305255f0edf07;p=deliverable%2Fbabeltrace.git text: Remove stream_timestamps hashtable Signed-off-by: Jérémie Galarneau --- diff --git a/plugins/text/text.c b/plugins/text/text.c index fc32c75e9..a318bfbf8 100644 --- a/plugins/text/text.c +++ b/plugins/text/text.c @@ -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"); if (!event) { ret = BT_COMPONENT_STATUS_ERROR; goto end;