[evolution-data-server] ECalBackendWeather: Remove the remove_sync() method.



commit b1f304bb00fad6b987c3816d873b33bbb10197e7
Author: Matthew Barnes <mbarnes redhat com>
Date:   Thu Aug 16 15:55:17 2012 -0400

    ECalBackendWeather: 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.

 calendar/backends/weather/e-cal-backend-weather.c |   22 ---------------------
 1 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/calendar/backends/weather/e-cal-backend-weather.c b/calendar/backends/weather/e-cal-backend-weather.c
index 632c5f2..527ffce 100644
--- a/calendar/backends/weather/e-cal-backend-weather.c
+++ b/calendar/backends/weather/e-cal-backend-weather.c
@@ -551,27 +551,6 @@ e_cal_backend_weather_refresh (ECalBackendSync *backend,
 }
 
 static void
-e_cal_backend_weather_remove (ECalBackendSync *backend,
-                              EDataCal *cal,
-                              GCancellable *cancellable,
-                              GError **perror)
-{
-	ECalBackendWeather *cbw;
-	ECalBackendWeatherPrivate *priv;
-
-	cbw = E_CAL_BACKEND_WEATHER (backend);
-	priv = cbw->priv;
-
-	if (!priv->store) {
-		/* lie here a bit, but otherwise the calendar will not be removed, even it should */
-		g_print (G_STRLOC ": Doesn't have a cache?!?");
-		return;
-	}
-
-	e_cal_backend_store_remove (priv->store);
-}
-
-static void
 e_cal_backend_weather_receive_objects (ECalBackendSync *backend,
                                        EDataCal *cal,
                                        GCancellable *cancellable,
@@ -880,7 +859,6 @@ e_cal_backend_weather_class_init (ECalBackendWeatherClass *class)
 	sync_class->get_backend_property_sync	= e_cal_backend_weather_get_backend_property;
 	sync_class->open_sync			= e_cal_backend_weather_open;
 	sync_class->refresh_sync		= e_cal_backend_weather_refresh;
-	sync_class->remove_sync			= e_cal_backend_weather_remove;
 	sync_class->receive_objects_sync	= e_cal_backend_weather_receive_objects;
 	sync_class->get_object_sync		= e_cal_backend_weather_get_object;
 	sync_class->get_object_list_sync	= e_cal_backend_weather_get_object_list;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]