X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fir%2Ffield-types.c;fp=formats%2Fctf%2Fir%2Ffield-types.c;h=02a47b366d900cb0d5e1aa29019ab5a00558d480;hp=9e06840d4bda7dedfb6da2b2bf84609fc84cb861;hb=5c3f3b7ee3f3eb7a781266f660da3c9bb523277d;hpb=97faf54fa14020962e969941677b3c8bb25e4108 diff --git a/formats/ctf/ir/field-types.c b/formats/ctf/ir/field-types.c index 9e06840d..02a47b36 100644 --- a/formats/ctf/ir/field-types.c +++ b/formats/ctf/ir/field-types.c @@ -1146,24 +1146,6 @@ error: return NULL; } -int bt_ctf_field_type_enumeration_mapping_iterator_get_name( - struct bt_ctf_field_type_enumeration_mapping_iterator *iter, - const char **mapping_name) -{ - int ret = 0; - - if (!iter) { - ret = -1; - goto end; - } - - ret = bt_ctf_field_type_enumeration_get_mapping_name( - &iter->enumeration_type->parent, iter->index, - mapping_name); -end: - return ret; -} - int bt_ctf_field_type_enumeration_mapping_iterator_get_signed( struct bt_ctf_field_type_enumeration_mapping_iterator *iter, const char **mapping_name, int64_t *range_begin, @@ -1894,8 +1876,8 @@ struct bt_ctf_field_type *bt_ctf_field_type_variant_get_field_type_from_tag( goto end; } - ret = bt_ctf_field_type_enumeration_mapping_iterator_get_name(iter, - &enum_value); + ret = bt_ctf_field_type_enumeration_mapping_iterator_get_signed(iter, + &enum_value, NULL, NULL); if (ret) { goto end; }