X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fctf-ir%2Ffield-path.c;h=97ce554e2592bbbe287d0ab71b3a4c48be26aad9;hb=fdf0e7a0859aac0e7a540ded801921bdb14cb450;hp=ac42ef5cc481de6d61dd98e689cdc6c10dc26d0e;hpb=2e4636e16ecf36fd6f96f16d545fa43336f054af;p=babeltrace.git diff --git a/lib/ctf-ir/field-path.c b/lib/ctf-ir/field-path.c index ac42ef5c..97ce554e 100644 --- a/lib/ctf-ir/field-path.c +++ b/lib/ctf-ir/field-path.c @@ -170,29 +170,3 @@ int bt_ctf_field_path_get_index(const struct bt_ctf_field_path *field_path, end: return ret; } - -BT_HIDDEN -GString *bt_ctf_field_path_string(struct bt_ctf_field_path *path) -{ - GString *str = g_string_new(NULL); - size_t i; - - assert(path); - - if (!str) { - goto end; - } - - g_string_append_printf(str, "[%s", bt_ctf_scope_string(path->root)); - - for (i = 0; i < path->indexes->len; i++) { - int index = g_array_index(path->indexes, int, i); - - g_string_append_printf(str, ", %d", index); - } - - g_string_append(str, "]"); - -end: - return str; -}