X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=types%2Fstruct.c;h=69e3a553a2d64202344d8ca411af21daa07f7d8d;hp=21465c732ba0075af41dce513187bae386a262ee;hb=ab4cf05887a402e53396db43b5958918d0d2d022;hpb=e0c14875ccc7df4e6a13052f1af19a69b5bc7e16 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;