aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--e-util/e-table-memory-store.c20
-rw-r--r--e-util/e-table-memory-store.h3
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 {