From a764f34313170dea4e87679a84e9fd1a354fa6a3 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 26 Jun 2013 11:24:20 -0400 Subject: Remove unused e_table_sort_info_freeze/thaw(). --- e-util/e-table-sort-info.c | 58 ++-------------------------------------------- e-util/e-table-sort-info.h | 4 ---- 2 files changed, 2 insertions(+), 60 deletions(-) (limited to 'e-util') diff --git a/e-util/e-table-sort-info.c b/e-util/e-table-sort-info.c index 0dce87b329..55d746fc28 100644 --- a/e-util/e-table-sort-info.c +++ b/e-util/e-table-sort-info.c @@ -65,7 +65,6 @@ e_table_sort_info_init (ETableSortInfo *info) info->groupings = NULL; info->sort_count = 0; info->sortings = NULL; - info->frozen = 0; info->sort_info_changed = 0; info->group_info_changed = 0; info->can_group = 1; @@ -106,11 +105,7 @@ e_table_sort_info_sort_info_changed (ETableSortInfo *info) g_return_if_fail (info != NULL); g_return_if_fail (E_IS_TABLE_SORT_INFO (info)); - if (info->frozen) { - info->sort_info_changed = 1; - } else { - g_signal_emit (info, e_table_sort_info_signals[SORT_INFO_CHANGED], 0); - } + g_signal_emit (info, e_table_sort_info_signals[SORT_INFO_CHANGED], 0); } static void @@ -119,56 +114,7 @@ e_table_sort_info_group_info_changed (ETableSortInfo *info) g_return_if_fail (info != NULL); g_return_if_fail (E_IS_TABLE_SORT_INFO (info)); - if (info->frozen) { - info->group_info_changed = 1; - } else { - g_signal_emit (info, e_table_sort_info_signals[GROUP_INFO_CHANGED], 0); - } -} - -/** - * e_table_sort_info_freeze: - * @info: The ETableSortInfo object - * - * This functions allows the programmer to cluster various changes to the - * ETableSortInfo (grouping and sorting) without having the object emit - * "group_info_changed" or "sort_info_changed" signals on each change. - * - * To thaw, invoke the e_table_sort_info_thaw() function, which will - * trigger any signals that might have been queued. - */ -void -e_table_sort_info_freeze (ETableSortInfo *info) -{ - info->frozen++; -} - -/** - * e_table_sort_info_thaw: - * @info: The ETableSortInfo object - * - * This functions allows the programmer to cluster various changes to the - * ETableSortInfo (grouping and sorting) without having the object emit - * "group_info_changed" or "sort_info_changed" signals on each change. - * - * This function will flush any pending signals that might be emited by - * this object. - */ -void -e_table_sort_info_thaw (ETableSortInfo *info) -{ - info->frozen--; - if (info->frozen != 0) - return; - - if (info->sort_info_changed) { - info->sort_info_changed = 0; - e_table_sort_info_sort_info_changed (info); - } - if (info->group_info_changed) { - info->group_info_changed = 0; - e_table_sort_info_group_info_changed (info); - } + g_signal_emit (info, e_table_sort_info_signals[GROUP_INFO_CHANGED], 0); } /** diff --git a/e-util/e-table-sort-info.h b/e-util/e-table-sort-info.h index c56c5b07f5..b369ff5057 100644 --- a/e-util/e-table-sort-info.h +++ b/e-util/e-table-sort-info.h @@ -68,7 +68,6 @@ struct _ETableSortInfo { gint sort_count; ETableSortColumn *sortings; - guint frozen : 1; guint sort_info_changed : 1; guint group_info_changed : 1; @@ -85,9 +84,6 @@ struct _ETableSortInfoClass { GType e_table_sort_info_get_type (void) G_GNUC_CONST; -void e_table_sort_info_freeze (ETableSortInfo *info); -void e_table_sort_info_thaw (ETableSortInfo *info); - guint e_table_sort_info_grouping_get_count (ETableSortInfo *info); void e_table_sort_info_grouping_truncate -- cgit v1.2.3