X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=formats%2Fctf%2Fir%2Fevent-types.c;h=5c091bc76896c210883487dff71b810ba7929995;hb=251e457f4be15a6a9841b22a70eeb9b8da58f60e;hp=94723f2b7724e00c4a7ce0f86569e913690e9a9a;hpb=ce6da4fd76d8f00d4b1cd60bbd40db64816db997;p=babeltrace.git diff --git a/formats/ctf/ir/event-types.c b/formats/ctf/ir/event-types.c index 94723f2b..5c091bc7 100644 --- a/formats/ctf/ir/event-types.c +++ b/formats/ctf/ir/event-types.c @@ -358,9 +358,6 @@ void bt_ctf_field_type_destroy(struct bt_ctf_ref *ref) return; } - if (type->alias_name) { - g_string_free(type->alias_name, TRUE); - } type_destroy_funcs[type_id](ref); } @@ -1780,20 +1777,6 @@ enum ctf_type_id bt_ctf_field_type_get_type_id( return type->declaration->id; } -const char *bt_ctf_field_type_get_alias_name( - struct bt_ctf_field_type *type) -{ - const char *name = NULL; - - if (!type || !type->alias_name) { - goto end; - } - - name = type->alias_name->str; -end: - return name; -} - void bt_ctf_field_type_get(struct bt_ctf_field_type *type) { if (!type) {