diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-06-19 00:25:21 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-06-19 00:29:17 +0800 |
commit | 6fd82c722835c88e292b206451fda824166f37c0 (patch) | |
tree | 31ab318ccd37856791ca12f7b087f7ef14e5b378 /e-util | |
parent | 77f165b6cf9b3a8c8e6d1c71a7a69f232f61977b (diff) | |
download | gsoc2013-evolution-6fd82c722835c88e292b206451fda824166f37c0.tar gsoc2013-evolution-6fd82c722835c88e292b206451fda824166f37c0.tar.gz gsoc2013-evolution-6fd82c722835c88e292b206451fda824166f37c0.tar.bz2 gsoc2013-evolution-6fd82c722835c88e292b206451fda824166f37c0.tar.lz gsoc2013-evolution-6fd82c722835c88e292b206451fda824166f37c0.tar.xz gsoc2013-evolution-6fd82c722835c88e292b206451fda824166f37c0.tar.zst gsoc2013-evolution-6fd82c722835c88e292b206451fda824166f37c0.zip |
Remove unused E_TABLE_MEMORY_STORE_COLUMN_TYPE_OBJECT.
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/e-table-memory-store.c | 20 | ||||
-rw-r--r-- | e-util/e-table-memory-store.h | 3 |
2 files changed, 1 insertions, 22 deletions
diff --git a/e-util/e-table-memory-store.c b/e-util/e-table-memory-store.c index 79e07575ff..51d8a3c107 100644 --- a/e-util/e-table-memory-store.c +++ b/e-util/e-table-memory-store.c @@ -54,10 +54,6 @@ duplicate_value (ETableMemoryStore *etms, if (val) g_object_ref ((gpointer) val); return (gpointer) val; - case E_TABLE_MEMORY_STORE_COLUMN_TYPE_OBJECT: - if (val) - g_object_ref ((gpointer) val); - return (gpointer) val; default: break; } @@ -77,10 +73,6 @@ free_value (ETableMemoryStore *etms, if (value) g_object_unref (value); break; - case E_TABLE_MEMORY_STORE_COLUMN_TYPE_OBJECT: - if (value) - g_object_unref (value); - break; default: break; } @@ -161,10 +153,6 @@ etms_initialize_value (ETableModel *etm, return g_strdup (""); case E_TABLE_MEMORY_STORE_COLUMN_TYPE_PIXBUF: return NULL; - case E_TABLE_MEMORY_STORE_COLUMN_TYPE_OBJECT: - if (etms->priv->columns[col].custom.initialize_value) - return etms->priv->columns[col].custom.initialize_value (E_TABLE_MODEL (etms), col, NULL); - break; default: break; } @@ -183,10 +171,6 @@ etms_value_is_empty (ETableModel *etm, return !(value && *(gchar *) value); case E_TABLE_MEMORY_STORE_COLUMN_TYPE_PIXBUF: return value == NULL; - case E_TABLE_MEMORY_STORE_COLUMN_TYPE_OBJECT: - if (etms->priv->columns[col].custom.value_is_empty) - return etms->priv->columns[col].custom.value_is_empty (E_TABLE_MODEL (etms), col, value, NULL); - break; default: break; } @@ -205,10 +189,6 @@ etms_value_to_string (ETableModel *etm, return g_strdup (value); case E_TABLE_MEMORY_STORE_COLUMN_TYPE_PIXBUF: return g_strdup (""); - case E_TABLE_MEMORY_STORE_COLUMN_TYPE_OBJECT: - if (etms->priv->columns[col].custom.value_is_empty) - return etms->priv->columns[col].custom.value_to_string (E_TABLE_MODEL (etms), col, value, NULL); - break; default: break; } diff --git a/e-util/e-table-memory-store.h b/e-util/e-table-memory-store.h index e9f88580dc..d3b95409f7 100644 --- a/e-util/e-table-memory-store.h +++ b/e-util/e-table-memory-store.h @@ -56,8 +56,7 @@ typedef enum { E_TABLE_MEMORY_STORE_COLUMN_TYPE_TERMINATOR, E_TABLE_MEMORY_STORE_COLUMN_TYPE_INTEGER, E_TABLE_MEMORY_STORE_COLUMN_TYPE_STRING, - E_TABLE_MEMORY_STORE_COLUMN_TYPE_PIXBUF, - E_TABLE_MEMORY_STORE_COLUMN_TYPE_OBJECT, + E_TABLE_MEMORY_STORE_COLUMN_TYPE_PIXBUF } ETableMemoryStoreColumnType; typedef struct { |