X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Ftext%2Ftext.c;h=a318bfbf8b861580ce10ab2b4399ca05cf6c65d1;hb=91e6e0b835e1a534c2e35929aed305255f0edf07;hp=fc32c75e90d57e027249c7411fb1469c6ff9cd3c;hpb=db0c79632aa65eae95c0cf99ceec614a5e0c894a;p=babeltrace.git 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;