aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-table-sort-info.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-06-26 23:24:20 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-06-26 23:36:12 +0800
commita764f34313170dea4e87679a84e9fd1a354fa6a3 (patch)
treeda09d389f671a7db2b033110d5ce131519b6d3c4 /e-util/e-table-sort-info.c
parente19fb153b191cdcfb66ca86d028da63dc0aaad3e (diff)
downloadgsoc2013-evolution-a764f34313170dea4e87679a84e9fd1a354fa6a3.tar
gsoc2013-evolution-a764f34313170dea4e87679a84e9fd1a354fa6a3.tar.gz
gsoc2013-evolution-a764f34313170dea4e87679a84e9fd1a354fa6a3.tar.bz2
gsoc2013-evolution-a764f34313170dea4e87679a84e9fd1a354fa6a3.tar.lz
gsoc2013-evolution-a764f34313170dea4e87679a84e9fd1a354fa6a3.tar.xz
gsoc2013-evolution-a764f34313170dea4e87679a84e9fd1a354fa6a3.tar.zst
gsoc2013-evolution-a764f34313170dea4e87679a84e9fd1a354fa6a3.zip
Remove unused e_table_sort_info_freeze/thaw().
Diffstat (limited to 'e-util/e-table-sort-info.c')
-rw-r--r--e-util/e-table-sort-info.c58
1 files changed, 2 insertions, 56 deletions
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);
}
/**