diff options
author | Stef Walter <stefw@gnome.org> | 2013-10-20 09:05:22 +0200 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-10-21 20:46:12 +0200 |
commit | 77a65ba33b737fe19de928ccf8c3196dfcd0726f (patch) | |
tree | 7c5dd7edaebdd65108f80e53333d096689e9d2ec /giscanner/sourcescanner.c | |
parent | 917da2d1aeffdc884a5fd5cf5b38a60ef088d0fb (diff) | |
download | gobject-introspection-77a65ba33b737fe19de928ccf8c3196dfcd0726f.tar.gz |
sourcescanner: Removed unused struct_or_union_or_enum_table field
https://bugzilla.gnome.org/show_bug.cgi?id=710560
Diffstat (limited to 'giscanner/sourcescanner.c')
-rw-r--r-- | giscanner/sourcescanner.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/giscanner/sourcescanner.c b/giscanner/sourcescanner.c index 30c2b036..98dbebd2 100644 --- a/giscanner/sourcescanner.c +++ b/giscanner/sourcescanner.c @@ -215,10 +215,6 @@ gi_source_scanner_new (void) scanner = g_slice_new0 (GISourceScanner); scanner->typedef_table = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL); - scanner->struct_or_union_or_enum_table = - g_hash_table_new_full (g_str_hash, g_str_equal, - g_free, (GDestroyNotify)gi_source_symbol_unref); - scanner->files = g_hash_table_new_full (g_file_hash, (GEqualFunc)g_file_equal, g_object_unref, NULL); g_queue_init (&scanner->conditionals); @@ -239,7 +235,6 @@ gi_source_scanner_free (GISourceScanner *scanner) g_object_unref (scanner->current_file); g_hash_table_destroy (scanner->typedef_table); - g_hash_table_destroy (scanner->struct_or_union_or_enum_table); g_slist_foreach (scanner->comments, (GFunc)gi_source_comment_free, NULL); g_slist_free (scanner->comments); @@ -291,13 +286,6 @@ gi_source_scanner_add_symbol (GISourceScanner *scanner, g_strdup (symbol->ident), GINT_TO_POINTER (TRUE)); break; - case CSYMBOL_TYPE_STRUCT: - case CSYMBOL_TYPE_UNION: - case CSYMBOL_TYPE_ENUM: - g_hash_table_insert (scanner->struct_or_union_or_enum_table, - g_strdup (symbol->ident), - gi_source_symbol_ref (symbol)); - break; default: break; } |