[evolution] Remove unused e_table_sort_info_freeze/thaw().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Remove unused e_table_sort_info_freeze/thaw().
- Date: Wed, 26 Jun 2013 15:35:37 +0000 (UTC)
commit a764f34313170dea4e87679a84e9fd1a354fa6a3
Author: Matthew Barnes <mbarnes redhat com>
Date: Wed Jun 26 11:24:20 2013 -0400
Remove unused e_table_sort_info_freeze/thaw().
.../evolution-util/evolution-util-sections.txt | 2 -
e-util/e-table-sort-info.c | 58 +-------------------
e-util/e-table-sort-info.h | 4 --
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 d5e1f54..af38473 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 0dce87b..55d746f 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 c56c5b0..b369ff5 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]