[evolution-data-server] EDataCal: Remove unused "handle-cancel-all" signal handler.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] EDataCal: Remove unused "handle-cancel-all" signal handler.
- Date: Tue, 29 Jan 2013 14:00:38 +0000 (UTC)
commit d25a207935288f42e0303f297379395db21c8a53
Author: Matthew Barnes <mbarnes redhat com>
Date: Tue Jan 29 08:57:45 2013 -0500
EDataCal: Remove unused "handle-cancel-all" signal handler.
ECalClient never invokes this method directly. Operations are
explicitly cancelled when ECalClient invokes the close() method.
calendar/libedata-cal/e-data-cal.c | 23 -----------------------
1 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/calendar/libedata-cal/e-data-cal.c b/calendar/libedata-cal/e-data-cal.c
index e23faa9..06a2ad8 100644
--- a/calendar/libedata-cal/e-data-cal.c
+++ b/calendar/libedata-cal/e-data-cal.c
@@ -86,7 +86,6 @@ typedef enum {
OP_GET_VIEW,
OP_GET_TIMEZONE,
OP_ADD_TIMEZONE,
- OP_CANCEL_ALL,
OP_CLOSE
} OperationID;
@@ -148,7 +147,6 @@ typedef struct {
gchar *prop_name;
/* OP_REFRESH */
- /* OP_CANCEL_ALL */
/* OP_CLOSE */
} d;
} OperationData;
@@ -502,7 +500,6 @@ operation_thread (gpointer data,
/* close just cancels all pending ops and frees data cal */
e_cal_backend_remove_client (backend, op->cal);
- case OP_CANCEL_ALL:
g_rec_mutex_lock (&op->cal->priv->pending_ops_lock);
g_hash_table_iter_init (&iter, op->cal->priv->pending_ops);
@@ -964,23 +961,6 @@ data_cal_handle_add_timezone_cb (EGdbusCal *interface,
}
static gboolean
-data_cal_handle_cancel_all_cb (EGdbusCal *interface,
- GDBusMethodInvocation *invocation,
- EDataCal *cal)
-{
- OperationData *op;
-
- op = op_new (OP_CANCEL_ALL, cal, invocation);
-
- e_gdbus_cal_complete_cancel_all (interface, invocation, NULL);
-
- /* This operation is never queued. */
- e_operation_pool_push (ops_pool, op);
-
- return TRUE;
-}
-
-static gboolean
data_cal_handle_close_cb (EGdbusCal *interface,
GDBusMethodInvocation *invocation,
EDataCal *cal)
@@ -1986,9 +1966,6 @@ e_data_cal_init (EDataCal *ecal)
dbus_interface, "handle-add-timezone",
G_CALLBACK (data_cal_handle_add_timezone_cb), ecal);
g_signal_connect (
- dbus_interface, "handle-cancel-all",
- G_CALLBACK (data_cal_handle_cancel_all_cb), ecal);
- g_signal_connect (
dbus_interface, "handle-close",
G_CALLBACK (data_cal_handle_close_cb), ecal);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]