From dfc653bb43a6311c04d7881c2d1b1642c081f839 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 1 Jul 2013 15:22:15 -0400 Subject: Remove e_tree_set_state(). No longer used. --- .../evolution-util/evolution-util-sections.txt | 1 - e-util/e-tree.c | 26 ---------------------- e-util/e-tree.h | 2 -- 3 files changed, 29 deletions(-) diff --git a/doc/reference/evolution-util/evolution-util-sections.txt b/doc/reference/evolution-util/evolution-util-sections.txt index b8f51d6dcb..b5014cabce 100644 --- a/doc/reference/evolution-util/evolution-util-sections.txt +++ b/doc/reference/evolution-util/evolution-util-sections.txt @@ -4112,7 +4112,6 @@ e_tree_construct e_tree_new e_tree_get_state_object e_tree_get_spec -e_tree_set_state e_tree_set_state_object e_tree_show_cursor_after_reflow e_tree_set_cursor diff --git a/e-util/e-tree.c b/e-util/e-tree.c index 690bd1ff6e..b861fa6ca1 100644 --- a/e-util/e-tree.c +++ b/e-util/e-tree.c @@ -1342,32 +1342,6 @@ e_tree_set_state_object (ETree *tree, e_tree_state_change (tree); } -/** - * e_tree_set_state: - * @tree: #ETree object that will be modified - * @state_str: a string with the XML representation of the #ETableState. - * - * This routine sets the state (as described by #ETableState) of the - * #ETree object. - */ -void -e_tree_set_state (ETree *tree, - const gchar *state_str) -{ - ETableState *state; - - g_return_if_fail (E_IS_TREE (tree)); - g_return_if_fail (state_str != NULL); - - state = e_table_state_new (tree->priv->spec); - e_table_state_load_from_string (state, state_str); - - if (state->col_count > 0) - e_tree_set_state_object (tree, state); - - g_object_unref (state); -} - /** * e_tree_get_state_object: * @tree: #ETree object to act on diff --git a/e-util/e-tree.h b/e-util/e-tree.h index cc8d582ba5..1bf403347b 100644 --- a/e-util/e-tree.h +++ b/e-util/e-tree.h @@ -186,8 +186,6 @@ ETableSpecification * e_tree_get_spec (ETree *tree); /* note that it is more efficient to provide the state at creation time */ -void e_tree_set_state (ETree *tree, - const gchar *state_str); void e_tree_set_state_object (ETree *tree, ETableState *state); void e_tree_show_cursor_after_reflow (ETree *tree); -- cgit v1.2.3