summaryrefslogtreecommitdiff
path: root/giscanner
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-10-20 09:05:22 +0200
committerStef Walter <stefw@gnome.org>2013-10-21 20:46:12 +0200
commit77a65ba33b737fe19de928ccf8c3196dfcd0726f (patch)
tree7c5dd7edaebdd65108f80e53333d096689e9d2ec /giscanner
parent917da2d1aeffdc884a5fd5cf5b38a60ef088d0fb (diff)
downloadgobject-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')
-rw-r--r--giscanner/sourcescanner.c12
-rw-r--r--giscanner/sourcescanner.h1
2 files changed, 0 insertions, 13 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;
}
diff --git a/giscanner/sourcescanner.h b/giscanner/sourcescanner.h
index 254e43bf..39ae84d7 100644
--- a/giscanner/sourcescanner.h
+++ b/giscanner/sourcescanner.h
@@ -114,7 +114,6 @@ struct _GISourceScanner
GHashTable *files;
GSList *comments; /* _GIComment */
GHashTable *typedef_table;
- GHashTable *struct_or_union_or_enum_table;
gboolean skipping;
GQueue conditionals;
};