Remove alias getter from IR field interface
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 5 Mar 2015 22:32:10 +0000 (17:32 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 16 Mar 2015 19:01:45 +0000 (15:01 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/ctf/ir/event-types.c
include/babeltrace/ctf-ir/event-types-internal.h
include/babeltrace/ctf-ir/event-types.h

index 94723f2b7724e00c4a7ce0f86569e913690e9a9a..5c091bc76896c210883487dff71b810ba7929995 100644 (file)
@@ -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) {
index 8c3ce2b833e9a9b7011555371e498c3b95b4fc2b..2f4c98ed159939cc14d1e0f39feeb9e8e9451dab 100644 (file)
@@ -44,7 +44,6 @@ typedef int(*type_serialize_func)(struct bt_ctf_field_type *,
 struct bt_ctf_field_type {
        struct bt_ctf_ref ref_count;
        struct bt_declaration *declaration;
-       GString *alias_name;
        type_freeze_func freeze;
        type_serialize_func serialize;
        /*
index 9562318172103ba14e1ad961af80a02b80f8b0b7..19dd6a330b178f0f4b178a1a7952c4b76705275b 100644 (file)
@@ -739,21 +739,6 @@ extern int bt_ctf_field_type_set_byte_order(struct bt_ctf_field_type *type,
 extern enum ctf_type_id bt_ctf_field_type_get_type_id(
                struct bt_ctf_field_type *type);
 
-/*
- * bt_ctf_field_type_get_alias_nameL get a field type's alias name
- *
- * A type's alias name is set if it was resolved from a typedef or
- * typealias. Note that types that are resolved from a ypealias or
- * typedef are distinct from the underlying type and can't be compared
- * pointer-wise.
- *
- * @param type Field type.
- *
- * Returns a field type's alias name, NULL on error.
- */
-extern const char *bt_ctf_field_type_get_alias_name(
-               struct bt_ctf_field_type *type);
-
 /*
  * bt_ctf_field_type_get and bt_ctf_field_type_put: increment and decrement
  * the field type's reference count.
This page took 0.027066 seconds and 4 git commands to generate.