[gnome-contacts/nielsdg/filters-and-sorters: 3/4] utils: Remove some unused functions




commit 27478965cb0f3696de9761c27e57d61bc37ad50f
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Wed Aug 17 00:35:51 2022 +0200

    utils: Remove some unused functions

 src/contacts-utils.vala | 24 ------------------------
 1 file changed, 24 deletions(-)
---
diff --git a/src/contacts-utils.vala b/src/contacts-utils.vala
index ad828335..f0d2d436 100644
--- a/src/contacts-utils.vala
+++ b/src/contacts-utils.vala
@@ -78,30 +78,6 @@ namespace Contacts.Utils {
     return files;
   }
 
-  public PersonaStore[] get_eds_address_books_from_backend (BackendStore backend_store) {
-    PersonaStore[] stores = {};
-    foreach (var backend in backend_store.enabled_backends.values) {
-      foreach (var persona_store in backend.persona_stores.values) {
-        if (persona_store.type_id == "eds") {
-          stores += persona_store;
-        }
-      }
-    }
-    return stores;
-  }
-
-  public PersonaStore? get_key_file_address_book (Store contacts_store) {
-    foreach (var backend in contacts_store.backend_store.enabled_backends.values) {
-      foreach (var persona_store in backend.persona_stores.values) {
-        if (persona_store.type_id == "key-file") {
-          return persona_store;
-        }
-      }
-    }
-    return null;
-  }
-
-
   public void show_error_dialog (string error, Gtk.Window toplevel) {
     var dialog = new Adw.MessageDialog (toplevel, null, error);
     dialog.add_response ("close", _("_Close"));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]