X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=types%2Fstruct.c;h=69e3a553a2d64202344d8ca411af21daa07f7d8d;hp=21465c732ba0075af41dce513187bae386a262ee;hb=78af2bcd1a8236a26371d7638ab7acb2d41b6807;hpb=05c749e538ebc3a4f6735f62d022655cf92fc17e diff --git a/types/struct.c b/types/struct.c index 21465c73..69e3a553 100644 --- a/types/struct.c +++ b/types/struct.c @@ -74,8 +74,8 @@ void _struct_declaration_free(struct declaration *declaration) g_free(struct_declaration); } -struct declaration_struct *struct_declaration_new(const char *name, - struct declaration_scope *parent_scope) +struct declaration_struct * + struct_declaration_new(struct declaration_scope *parent_scope) { struct declaration_struct *struct_declaration; struct declaration *declaration; @@ -89,7 +89,6 @@ struct declaration_struct *struct_declaration_new(const char *name, DEFAULT_NR_STRUCT_FIELDS); struct_declaration->scope = new_declaration_scope(parent_scope); declaration->id = CTF_TYPE_STRUCT; - declaration->name = g_quark_from_string(name); declaration->alignment = 1; declaration->copy = struct_copy; declaration->declaration_free = _struct_declaration_free;