ECalBackendHttp: Remove the remove_sync() method.
authorMatthew Barnes <mbarnes@redhat.com>
Thu, 16 Aug 2012 19:54:28 +0000 (15:54 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Thu, 16 Aug 2012 22:05:06 +0000 (18:05 -0400)
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.

calendar/backends/http/e-cal-backend-http.c

index 4337cb1..4103d73 100644 (file)
@@ -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;