[gnome-contacts] ContactsView: remove Subset, as it's not used.
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] ContactsView: remove Subset, as it's not used.
- Date: Sat, 23 Dec 2017 16:35:54 +0000 (UTC)
commit cc9be2c9596a219c1c4ffd75b121c0207c815f2e
Author: Niels De Graef <nielsdegraef gmail com>
Date: Sat Dec 23 17:09:44 2017 +0100
ContactsView: remove Subset, as it's not used.
src/contacts-view.vala | 29 -----------------------------
1 files changed, 0 insertions(+), 29 deletions(-)
---
diff --git a/src/contacts-view.vala b/src/contacts-view.vala
index bf7617d..ab54134 100644
--- a/src/contacts-view.vala
+++ b/src/contacts-view.vala
@@ -65,13 +65,6 @@ public class Contacts.View : ListBox {
}
}
- public enum Subset {
- MAIN,
- OTHER,
- ALL_SEPARATED,
- ALL
- }
-
public enum TextDisplay {
NONE,
PRESENCE,
@@ -81,7 +74,6 @@ public class Contacts.View : ListBox {
public signal void selection_changed (Contact? contact);
public signal void contacts_marked (int contacts_marked);
- Subset show_subset = Subset.ALL;
HashMap<Contact,ContactDataRow> contacts;
HashSet<Contact> hidden_contacts;
int nr_contacts_marked = 0;
@@ -132,21 +124,6 @@ public class Contacts.View : ListBox {
return 0;
}
- private bool is_other (ContactDataRow data) {
- if (show_subset == Subset.ALL_SEPARATED &&
- data.contact != null &&
- !data.contact.is_main)
- return true;
- return false;
- }
-
- public void set_show_subset (Subset subset) {
- show_subset = subset;
- update_all_filtered ();
- invalidate_filter ();
- invalidate_sort ();
- }
-
public void hide_contact (Contact contact) {
hidden_contacts.add (contact);
update_all_filtered ();
@@ -176,12 +153,6 @@ public class Contacts.View : ListBox {
if (c in hidden_contacts)
return false;
- if ((show_subset == Subset.MAIN &&
- !c.is_main) ||
- (show_subset == Subset.OTHER &&
- c.is_main))
- return false;
-
if (filter_values == null || filter_values.length == 0)
return true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]