aboutsummaryrefslogtreecommitdiffstats
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
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().
-rw-r--r--doc/reference/evolution-util/evolution-util-sections.txt2
-rw-r--r--e-util/e-table-sort-info.c58
-rw-r--r--e-util/e-table-sort-info.h4
3 files changed, 2 insertions, 62 deletions
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt b/doc/reference/evolution-util/evolution-util-sections.txt
index d5e1f54551..af3847346e 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -3866,8 +3866,6 @@ e_table_sorter_get_type
<FILE>e-table-sort-info</FILE>
<TITLE>ETableSortInfo</TITLE>
ETableSortInfo
-e_table_sort_info_freeze
-e_table_sort_info_thaw
e_table_sort_info_grouping_get_count
e_table_sort_info_grouping_truncate
ETableSortColumn
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