[folks/folks-0-8] telepathy: Remove Logger.prepare() return value



commit 61d7fd15e7ecce8b43dbac4846a02d361862ad8b
Author: Philip Withnall <philip tecnocode co uk>
Date:   Fri Dec 28 13:12:54 2012 +0000

    telepathy: Remove Logger.prepare() return value
    
    Itâs unused. Itâs private. Itâs a waste of code.

 backends/telepathy/lib/tpf-logger.vala |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/backends/telepathy/lib/tpf-logger.vala b/backends/telepathy/lib/tpf-logger.vala
index 011be78..5489f9b 100644
--- a/backends/telepathy/lib/tpf-logger.vala
+++ b/backends/telepathy/lib/tpf-logger.vala
@@ -75,10 +75,8 @@ internal class Logger : GLib.Object
         }
     }
 
-  public async bool prepare () throws GLib.Error
+  public async void prepare () throws GLib.Error
     {
-      bool retval = false;
-
       if (Logger._logger == null)
         {
           /* Create a logger proxy for favourites support */
@@ -91,11 +89,10 @@ internal class Logger : GLib.Object
           if (Logger._logger == null)
             {
               this.invalidated ();
-              return retval;
+              return;
             }
 
           Logger._dbus_conn = dbus_conn;
-          retval = true;
         }
 
       this._logger_watch_id = Bus.watch_name_on_connection (Logger._dbus_conn,
@@ -109,8 +106,6 @@ internal class Logger : GLib.Object
 
           this.favourite_contacts_changed (a, r);
         });
-
-      return retval;
     }
 
   private void _logger_vanished (DBusConnection conn, string name)



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