diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-06-15 23:16:58 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-06-15 23:16:58 +0800 |
commit | 05aea9076c1eada187fb9f72bf3952c14fa6d9ff (patch) | |
tree | 7c2daa474b16f1b158fca3fdedc09a039829f915 /e-util | |
parent | 2ec5459b75d1e0e943e6f539f2d1b8e8e3fb6bc2 (diff) | |
download | gsoc2013-evolution-05aea9076c1eada187fb9f72bf3952c14fa6d9ff.tar.gz gsoc2013-evolution-05aea9076c1eada187fb9f72bf3952c14fa6d9ff.tar.zst gsoc2013-evolution-05aea9076c1eada187fb9f72bf3952c14fa6d9ff.zip |
Remove unused e_tree_model_no_change().
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/e-tree-model.c | 25 | ||||
-rw-r--r-- | e-util/e-tree-model.h | 2 | ||||
-rw-r--r-- | e-util/e-tree-selection-model.c | 15 | ||||
-rw-r--r-- | e-util/e-tree-table-adapter.c | 13 |
4 files changed, 0 insertions, 55 deletions
diff --git a/e-util/e-tree-model.c b/e-util/e-tree-model.c index c06fe07656..7c3fdeab61 100644 --- a/e-util/e-tree-model.c +++ b/e-util/e-tree-model.c @@ -47,7 +47,6 @@ G_DEFINE_TYPE (ETreeModel, e_tree_model, G_TYPE_OBJECT) enum { PRE_CHANGE, - NO_CHANGE, NODE_CHANGED, NODE_DATA_CHANGED, NODE_COL_CHANGED, @@ -75,15 +74,6 @@ e_tree_model_class_init (ETreeModelClass *class) g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); - signals[NO_CHANGE] = g_signal_new ( - "no_change", - G_TYPE_FROM_CLASS (object_class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET (ETreeModelClass, no_change), - (GSignalAccumulator) NULL, NULL, - g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, 0); - signals[REBUILT] = g_signal_new ( "rebuilt", G_TYPE_FROM_CLASS (object_class), @@ -202,7 +192,6 @@ e_tree_model_class_init (ETreeModelClass *class) class->value_to_string = NULL; class->pre_change = NULL; - class->no_change = NULL; class->rebuilt = NULL; class->node_changed = NULL; class->node_data_changed = NULL; @@ -236,20 +225,6 @@ e_tree_model_pre_change (ETreeModel *tree_model) } /** - * e_tree_model_no_change: - * @tree_model: - * - * Return value: - **/ -void -e_tree_model_no_change (ETreeModel *tree_model) -{ - g_return_if_fail (E_IS_TREE_MODEL (tree_model)); - - g_signal_emit (tree_model, signals[NO_CHANGE], 0); -} - -/** * e_tree_model_rebuilt: * @tree_model: * diff --git a/e-util/e-tree-model.h b/e-util/e-tree-model.h index 068b23ffb2..9a73518b1c 100644 --- a/e-util/e-tree-model.h +++ b/e-util/e-tree-model.h @@ -148,7 +148,6 @@ struct _ETreeModelClass { */ void (*pre_change) (ETreeModel *tree_model); - void (*no_change) (ETreeModel *tree_model); void (*node_changed) (ETreeModel *tree_model, ETreePath path); void (*node_data_changed) (ETreeModel *tree_model, @@ -253,7 +252,6 @@ ETreePath e_tree_model_node_find (ETreeModel *tree_model, ** Routines for emitting signals on the ETreeModel */ void e_tree_model_pre_change (ETreeModel *tree_model); -void e_tree_model_no_change (ETreeModel *tree_model); void e_tree_model_rebuilt (ETreeModel *tree_model); void e_tree_model_node_changed (ETreeModel *tree_model, ETreePath path); diff --git a/e-util/e-tree-selection-model.c b/e-util/e-tree-selection-model.c index fc059d5e6d..9a1cda7b35 100644 --- a/e-util/e-tree-selection-model.c +++ b/e-util/e-tree-selection-model.c @@ -57,7 +57,6 @@ struct _ETreeSelectionModelPrivate { gchar *cursor_save_id; gint tree_model_pre_change_id; - gint tree_model_no_change_id; gint tree_model_node_changed_id; gint tree_model_node_data_changed_id; gint tree_model_node_col_changed_id; @@ -184,13 +183,6 @@ etsm_pre_change (ETreeModel *etm, } static void -etsm_no_change (ETreeModel *etm, - ETreeSelectionModel *etsm) -{ - free_id (etsm); -} - -static void etsm_node_changed (ETreeModel *etm, ETreePath node, ETreeSelectionModel *etsm) @@ -259,10 +251,6 @@ add_model (ETreeSelectionModel *etsm, priv->model, "pre_change", G_CALLBACK (etsm_pre_change), etsm); - priv->tree_model_no_change_id = g_signal_connect_after ( - priv->model, "no_change", - G_CALLBACK (etsm_no_change), etsm); - priv->tree_model_node_changed_id = g_signal_connect_after ( priv->model, "node_changed", G_CALLBACK (etsm_node_changed), etsm); @@ -299,8 +287,6 @@ drop_model (ETreeSelectionModel *etsm) g_signal_handler_disconnect ( priv->model, priv->tree_model_pre_change_id); g_signal_handler_disconnect ( - priv->model, priv->tree_model_no_change_id); - g_signal_handler_disconnect ( priv->model, priv->tree_model_node_changed_id); g_signal_handler_disconnect ( priv->model, priv->tree_model_node_data_changed_id); @@ -317,7 +303,6 @@ drop_model (ETreeSelectionModel *etsm) priv->model = NULL; priv->tree_model_pre_change_id = 0; - priv->tree_model_no_change_id = 0; priv->tree_model_node_changed_id = 0; priv->tree_model_node_data_changed_id = 0; priv->tree_model_node_col_changed_id = 0; diff --git a/e-util/e-tree-table-adapter.c b/e-util/e-tree-table-adapter.c index f76f11b26a..c0fe6af136 100644 --- a/e-util/e-tree-table-adapter.c +++ b/e-util/e-tree-table-adapter.c @@ -86,7 +86,6 @@ struct _ETreeTableAdapterPrivate { gint last_access; gint pre_change_id; - gint no_change_id; gint rebuilt_id; gint node_changed_id; gint node_data_changed_id; @@ -584,8 +583,6 @@ etta_dispose (GObject *object) g_signal_handler_disconnect ( priv->source, priv->pre_change_id); g_signal_handler_disconnect ( - priv->source, priv->no_change_id); - g_signal_handler_disconnect ( priv->source, priv->rebuilt_id); g_signal_handler_disconnect ( priv->source, priv->node_changed_id); @@ -808,13 +805,6 @@ etta_proxy_pre_change (ETreeModel *etm, } static void -etta_proxy_no_change (ETreeModel *etm, - ETreeTableAdapter *etta) -{ - e_table_model_no_change (E_TABLE_MODEL (etta)); -} - -static void etta_proxy_rebuilt (ETreeModel *etm, ETreeTableAdapter *etta) { @@ -970,9 +960,6 @@ e_tree_table_adapter_construct (ETreeTableAdapter *etta, etta->priv->pre_change_id = g_signal_connect ( source, "pre_change", G_CALLBACK (etta_proxy_pre_change), etta); - etta->priv->no_change_id = g_signal_connect ( - source, "no_change", - G_CALLBACK (etta_proxy_no_change), etta); etta->priv->rebuilt_id = g_signal_connect ( source, "rebuilt", G_CALLBACK (etta_proxy_rebuilt), etta); |