[gobject-introspection] sourcescanner: Removed unused struct_or_union_or_enum_table field



commit 77a65ba33b737fe19de928ccf8c3196dfcd0726f
Author: Stef Walter <stefw gnome org>
Date:   Sun Oct 20 09:05:22 2013 +0200

    sourcescanner: Removed unused struct_or_union_or_enum_table field
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710560

 giscanner/sourcescanner.c |   12 ------------
 giscanner/sourcescanner.h |    1 -
 2 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/giscanner/sourcescanner.c b/giscanner/sourcescanner.c
index 30c2b03..98dbebd 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 254e43b..39ae84d 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;
 };


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]