[glib/wip/gsettings-list] Remove useless TablePair
- From: Rodrigo Moya <rodrigo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/gsettings-list] Remove useless TablePair
- Date: Thu, 4 Nov 2010 12:19:19 +0000 (UTC)
commit f0ade01b359faebf1511e10dc3f953c5a3eea6c5
Author: Rodrigo Moya <rodrigo gnome-db org>
Date: Thu Oct 28 18:24:25 2010 +0200
Remove useless TablePair
gio/gmemorysettingsbackend.c | 32 --------------------------------
1 files changed, 0 insertions(+), 32 deletions(-)
---
diff --git a/gio/gmemorysettingsbackend.c b/gio/gmemorysettingsbackend.c
index 48859e1..dc37f04 100644
--- a/gio/gmemorysettingsbackend.c
+++ b/gio/gmemorysettingsbackend.c
@@ -32,42 +32,10 @@
G_TYPE_MEMORY_SETTINGS_BACKEND, \
GMemorySettingsBackend))
-typedef struct
-{
- GHashTable/*<string, GVariant>*/ *values;
- GHashTable/*<string, GHashTable<string, TablePair>*/ *lists;
-} TablePair;
-
-static void
-table_pair_free (gpointer data)
-{
- TablePair *pair = data;
-
- g_hash_table_unref (pair->values);
- g_hash_table_unref (pair->lists);
-}
-
-static TablePair *
-table_pair_new (void)
-{
- TablePair *pair;
-
- pair = g_slice_new (TablePair);
- pair->values = g_hash_table_new_full (g_str_hash, g_str_equal, g_free,
- (GDestroyNotify) g_variant_unref);
- pair->lists = g_hash_table_new_full (g_str_hash, g_str_equal, g_free,
- (GDestroyNotify) g_hash_table_unref);
-
- return pair;
-}
-
-
-
typedef GSettingsBackendClass GMemorySettingsBackendClass;
typedef struct
{
GSettingsBackend parent_instance;
- TablePair *root;
GHashTable *table;
} GMemorySettingsBackend;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]