[empathy] event-manager: remove HandleWith() fallback
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] event-manager: remove HandleWith() fallback
- Date: Mon, 27 Jan 2014 14:42:29 +0000 (UTC)
commit 367cb0a23315c4025be0b5f0a9fdf87b0830b0e3
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon Jan 27 13:06:02 2014 +0100
event-manager: remove HandleWith() fallback
Mission-control 5.5.0 has been released 3.5 years ago...
src/empathy-event-manager.c | 31 +------------------------------
1 files changed, 1 insertions(+), 30 deletions(-)
---
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c
index dbb6a35..f7b4b4f 100644
--- a/src/empathy-event-manager.c
+++ b/src/empathy-event-manager.c
@@ -260,21 +260,6 @@ event_manager_add (EmpathyEventManager *manager,
}
static void
-handle_with_cb (GObject *source,
- GAsyncResult *result,
- gpointer user_data)
-{
- TpChannelDispatchOperation *cdo = TP_CHANNEL_DISPATCH_OPERATION (source);
- GError *error = NULL;
-
- if (!tp_channel_dispatch_operation_handle_with_finish (cdo, result, &error))
- {
- DEBUG ("HandleWith failed: %s\n", error->message);
- g_error_free (error);
- }
-}
-
-static void
handle_with_time_cb (GObject *source,
GAsyncResult *result,
gpointer user_data)
@@ -285,21 +270,7 @@ handle_with_time_cb (GObject *source,
if (!tp_channel_dispatch_operation_handle_with_time_finish (cdo, result,
&error))
{
- if (g_error_matches (error, TP_ERROR, TP_ERROR_NOT_IMPLEMENTED))
- {
- EventManagerApproval *approval = user_data;
-
- DEBUG ("HandleWithTime() is not implemented, falling back to "
- "HandleWith(). Please upgrade to telepathy-mission-control "
- "5.5.0 or later");
-
- tp_channel_dispatch_operation_handle_with_async (approval->operation,
- NULL, handle_with_cb, approval);
- }
- else
- {
- DEBUG ("HandleWithTime failed: %s\n", error->message);
- }
+ DEBUG ("HandleWithTime failed: %s\n", error->message);
g_error_free (error);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]