Cleanup: flt.lttng-utils.debug-info: remove leftover comments
[babeltrace.git] / src / plugins / lttng-utils / debug-info / trace-ir-mapping.c
index ec074d5dc56a65c6cd831744eec98733d621efa6..c0916005122252ccfc7766fdc79c844a8671507b 100644 (file)
@@ -28,7 +28,7 @@
 #define BT_COMP_LOG_SELF_COMP (ir_maps->self_comp)
 #define BT_LOG_OUTPUT_LEVEL (ir_maps->log_level)
 #define BT_LOG_TAG "PLUGIN/FLT.LTTNG-UTILS.DEBUG-INFO/TRACE-IR-MAPPING"
-#include "plugins/comp-logging.h"
+#include "logging/comp-logging.h"
 
 #include <stdbool.h>
 
@@ -232,10 +232,6 @@ bt_stream *trace_ir_mapping_create_new_mapped_stream(
                BT_COMP_LOGE_STR("Error creating output stream");
                goto end;
        }
-       /*
-        * Release our ref since the trace object will be managing the life
-        * time of the stream objects.
-        */
 
        copy_stream_content(in_stream, out_stream, ir_maps->log_level,
                ir_maps->self_comp);
@@ -391,10 +387,6 @@ bt_packet *trace_ir_mapping_create_new_mapped_packet(
                goto end;
        }
 
-       /*
-        * Release our ref since the stream object will be managing the life
-        * time of the packet objects.
-        */
        copy_packet_content(in_packet, out_packet, ir_maps->log_level,
                ir_maps->self_comp);
 
@@ -617,9 +609,7 @@ void trace_ir_metadata_maps_destroy(struct trace_ir_metadata_maps *maps)
                g_hash_table_destroy(maps->clock_class_map);
        }
 
-       if (maps->fc_resolving_ctx) {
-               g_free(maps->fc_resolving_ctx);
-       }
+       g_free(maps->fc_resolving_ctx);
 
        if (maps->output_trace_class) {
                bt_trace_class_put_ref(maps->output_trace_class);
@@ -656,9 +646,7 @@ void trace_ir_maps_destroy(struct trace_ir_maps *maps)
                return;
        }
 
-       if (maps->debug_info_field_class_name) {
-               g_free(maps->debug_info_field_class_name);
-       }
+       g_free(maps->debug_info_field_class_name);
 
        if (maps->data_maps) {
                g_hash_table_destroy(maps->data_maps);
This page took 0.02509 seconds and 4 git commands to generate.