X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Fctf%2Fcommon%2Fmetadata%2Fctf-meta.h;h=76e24d4274fea6c17b62213cd85f529c46b9cf6e;hb=862ca4ed7b3a8ef14f69529d252bccc48a33108a;hp=4c9aacf4c48e267b2dccdb8cf5509dccadbfb224;hpb=0d72b8c329ad51d14ab4e83330b38c2c8da69dd4;p=babeltrace.git diff --git a/plugins/ctf/common/metadata/ctf-meta.h b/plugins/ctf/common/metadata/ctf-meta.h index 4c9aacf4..76e24d42 100644 --- a/plugins/ctf/common/metadata/ctf-meta.h +++ b/plugins/ctf/common/metadata/ctf-meta.h @@ -246,7 +246,6 @@ struct ctf_trace_class_env_entry { }; struct ctf_trace_class { - GString *name; unsigned int major; unsigned int minor; uint8_t uuid[16]; @@ -270,7 +269,7 @@ struct ctf_trace_class { bool is_translated; /* Weak, set during translation */ - struct bt_trace *ir_tc; + struct bt_trace_class *ir_tc; }; static inline @@ -1450,9 +1449,7 @@ struct ctf_trace_class *ctf_trace_class_create(void) struct ctf_trace_class *tc = g_new0(struct ctf_trace_class, 1); BT_ASSERT(tc); - tc->name = g_string_new(NULL); tc->default_byte_order = -1; - BT_ASSERT(tc->name); tc->clock_classes = g_ptr_array_new_with_free_func( (GDestroyNotify) bt_object_put_ref); BT_ASSERT(tc->clock_classes); @@ -1471,10 +1468,6 @@ void ctf_trace_class_destroy(struct ctf_trace_class *tc) return; } - if (tc->name) { - g_string_free(tc->name, TRUE); - } - ctf_field_class_destroy(tc->packet_header_fc); if (tc->clock_classes) {