From: Matthew Barnes Date: Thu, 16 Aug 2012 19:54:28 +0000 (-0400) Subject: ECalBackendHttp: Remove the remove_sync() method. X-Git-Tag: upstream/3.7.4~544 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd2dd7f2e0fd2269b8481bfac1c0510f389c5b01;p=platform%2Fupstream%2Fevolution-data-server.git ECalBackendHttp: Remove the remove_sync() method. Cache reaper module takes care of the data and cache cleanup now. When a data source is removed, the backend for it is simply finalized. --- diff --git a/calendar/backends/http/e-cal-backend-http.c b/calendar/backends/http/e-cal-backend-http.c index 4337cb1..4103d73 100644 --- a/calendar/backends/http/e-cal-backend-http.c +++ b/calendar/backends/http/e-cal-backend-http.c @@ -995,24 +995,6 @@ e_cal_backend_http_refresh (ECalBackendSync *backend, priv->reload_timeout_id = g_timeout_add (1000, (GSourceFunc) reload_cb, cbhttp); } -static void -e_cal_backend_http_remove (ECalBackendSync *backend, - EDataCal *cal, - GCancellable *cancellable, - GError **perror) -{ - ECalBackendHttp *cbhttp; - ECalBackendHttpPrivate *priv; - - cbhttp = E_CAL_BACKEND_HTTP (backend); - priv = cbhttp->priv; - - if (!priv->store) - return; - - e_cal_backend_store_remove (priv->store); -} - /* Set_mode handler for the http backend */ static void e_cal_backend_http_notify_online_cb (ECalBackend *backend, @@ -1564,7 +1546,6 @@ e_cal_backend_http_class_init (ECalBackendHttpClass *class) sync_class->get_backend_property_sync = e_cal_backend_http_get_backend_property; sync_class->open_sync = e_cal_backend_http_open; sync_class->refresh_sync = e_cal_backend_http_refresh; - sync_class->remove_sync = e_cal_backend_http_remove; sync_class->create_objects_sync = e_cal_backend_http_create_objects; sync_class->modify_objects_sync = e_cal_backend_http_modify_objects; sync_class->remove_objects_sync = e_cal_backend_http_remove_objects;