[gnome-contacts] ContactsView: remove hidden_contacts field.



commit 709107f22b5457418c863b888071335a44f42074
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Sat Dec 23 17:35:20 2017 +0100

    ContactsView: remove hidden_contacts field.
    
    It literally wasn't being used.

 src/contacts-view.vala |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/src/contacts-view.vala b/src/contacts-view.vala
index ae076b0..c790e93 100644
--- a/src/contacts-view.vala
+++ b/src/contacts-view.vala
@@ -69,7 +69,6 @@ public class Contacts.View : ListBox {
   public signal void contacts_marked (int contacts_marked);
 
   HashMap<Contact,ContactDataRow> contacts;
-  HashSet<Contact> hidden_contacts;
   int nr_contacts_marked = 0;
 
   string []? filter_values;
@@ -93,8 +92,6 @@ public class Contacts.View : ListBox {
   }
 
   construct {
-    hidden_contacts = new HashSet<Contact>();
-
     contacts = new HashMap<Contact,ContactDataRow> ();
 
     this.set_sort_func ((row_a, row_b) => {
@@ -118,12 +115,6 @@ public class Contacts.View : ListBox {
     return 0;
   }
 
-  public void hide_contact (Contact contact) {
-    hidden_contacts.add (contact);
-    update_all_filtered ();
-    invalidate_filter ();
-  }
-
   public void set_filter_values (string []? values) {
     if (filter_values == values)
       return;
@@ -144,9 +135,6 @@ public class Contacts.View : ListBox {
     if (c.is_hidden)
       return false;
 
-    if (c in hidden_contacts)
-      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]