[evolution] Remove unused E_TABLE_MEMORY_STORE_COLUMN_TYPE_OBJECT.



commit 6fd82c722835c88e292b206451fda824166f37c0
Author: Matthew Barnes <mbarnes redhat com>
Date:   Tue Jun 18 12:25:21 2013 -0400

    Remove unused E_TABLE_MEMORY_STORE_COLUMN_TYPE_OBJECT.

 e-util/e-table-memory-store.c |   20 --------------------
 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 79e0757..51d8a3c 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 e9f8858..d3b9540 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 {


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