[folks] Remove unused code from Tpf.PersonaStore



commit 2d2e1e1096b562c40c1d02a0ecc373287e51b83e
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Thu Mar 24 16:09:21 2011 +0000

    Remove unused code from Tpf.PersonaStore

 backends/telepathy/lib/tpf-persona-store.vala |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/backends/telepathy/lib/tpf-persona-store.vala b/backends/telepathy/lib/tpf-persona-store.vala
index 9a4685e..c3189c1 100644
--- a/backends/telepathy/lib/tpf-persona-store.vala
+++ b/backends/telepathy/lib/tpf-persona-store.vala
@@ -1325,8 +1325,6 @@ public class Tpf.PersonaStore : Folks.PersonaStore
                   this._conn, contact_ids, (uint[]) _contact_features);
 
           var personas = new HashSet<Persona> ();
-          var err_count = 0;
-          var err_string = "";
           unowned GLib.List<TelepathyGLib.Contact> l;
           for (l = contacts; l != null; l = l.next)
             {
@@ -1339,18 +1337,6 @@ public class Tpf.PersonaStore : Folks.PersonaStore
                 personas.add (persona);
             }
 
-          if (err_count > 0)
-            {
-              throw new Folks.PersonaStoreError.CREATE_FAILED (
-                  /* Translators: the first parameter is the number of personas
-                   * which couldn't be created, and the second is a set of error
-                   * message lines, built using the "'%s' (%p): %s" string
-                   * above. */
-                  ngettext ("Failed to create %u persona:\n%s",
-                      "Failed to create %u personas:\n%s", err_count),
-                  err_count, err_string);
-            }
-
           if (personas.size > 0)
             {
               this.personas_changed (personas, new HashSet<Persona> (),



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