From 91e6e0b835e1a534c2e35929aed305255f0edf07 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 12 Sep 2016 15:07:19 -0400 Subject: [PATCH] text: Remove stream_timestamps hashtable MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- plugins/text/text.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/plugins/text/text.c b/plugins/text/text.c index fc32c75e..a318bfbf 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; -- 2.34.1