[folks] telepathy: Remove Logger.prepare() return value
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] telepathy: Remove Logger.prepare() return value
- Date: Fri, 28 Dec 2012 14:00:30 +0000 (UTC)
commit ce34130ce81d893ee1ad345a8eceb0c0e3a153d9
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]