diff options
Diffstat (limited to 'calendar/gui/e-cal-model.c')
-rw-r--r-- | calendar/gui/e-cal-model.c | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c index b7c7145c05..617399b0a5 100644 --- a/calendar/gui/e-cal-model.c +++ b/calendar/gui/e-cal-model.c @@ -3005,28 +3005,6 @@ cal_model_retrieve_capabilies_cb (GObject *source_object, update_e_cal_view_for_client (model, client_data); } -struct RetryOpenData -{ - EClient *client; - ECalModel *model; - GCancellable *cancellable; -}; - -static void -free_retry_open_data (gpointer data) -{ - struct RetryOpenData *rod = data; - - if (!rod) - return; - - g_object_unref (rod->client); - g_object_unref (rod->cancellable); - g_free (rod); -} - -static gboolean cal_model_retry_open_timeout_cb (gpointer user_data); - static void client_opened_cb (GObject *source_object, GAsyncResult *result, @@ -3044,25 +3022,6 @@ client_opened_cb (GObject *source_object, return; } - if (error && g_error_matches (error, E_CLIENT_ERROR, E_CLIENT_ERROR_BUSY)) { - struct RetryOpenData *rod; - - rod = g_new0 (struct RetryOpenData, 1); - rod->client = g_object_ref (client); - rod->model = model; - rod->cancellable = g_object_ref (model->priv->loading_clients); - - /* postpone for 1/2 of a second, backend is busy now */ - g_timeout_add_full ( - G_PRIORITY_DEFAULT, 500, - cal_model_retry_open_timeout_cb, - rod, free_retry_open_data); - - g_error_free (error); - - return; - } - if (error != NULL) { ESource *source; @@ -3084,22 +3043,6 @@ client_opened_cb (GObject *source_object, cal_model_retrieve_capabilies_cb, model); } -static gboolean -cal_model_retry_open_timeout_cb (gpointer user_data) -{ - struct RetryOpenData *rod = user_data; - - g_return_val_if_fail (rod != NULL, FALSE); - g_return_val_if_fail (rod->client != NULL, FALSE); - g_return_val_if_fail (rod->model != NULL, FALSE); - - e_client_open ( - rod->client, TRUE, rod->cancellable, - client_opened_cb, rod->model); - - return FALSE; -} - static ECalModelClient * add_new_client (ECalModel *model, ECalClient *client, |