[evolution-data-server] CalDAV/CardDAV: Remove unused variable declaration



commit 505e6410a3a549e06e62948d96722472d6936db9
Author: Milan Crha <mcrha redhat com>
Date:   Tue Feb 25 16:27:40 2020 +0100

    CalDAV/CardDAV: Remove unused variable declaration

 src/addressbook/backends/carddav/e-book-backend-carddav.c | 3 ---
 src/calendar/backends/caldav/e-cal-backend-caldav.c       | 3 ---
 2 files changed, 6 deletions(-)
---
diff --git a/src/addressbook/backends/carddav/e-book-backend-carddav.c 
b/src/addressbook/backends/carddav/e-book-backend-carddav.c
index 59e606641..b5f3f917c 100644
--- a/src/addressbook/backends/carddav/e-book-backend-carddav.c
+++ b/src/addressbook/backends/carddav/e-book-backend-carddav.c
@@ -193,13 +193,11 @@ ebb_carddav_connect_sync (EBookMetaBackend *meta_backend,
 
        if (success) {
                ESourceWebdav *webdav_extension;
-               EBookCache *book_cache;
                SoupURI *soup_uri;
                gboolean addressbook;
 
                webdav_extension = e_source_get_extension (source, E_SOURCE_EXTENSION_WEBDAV_BACKEND);
                soup_uri = e_source_webdav_dup_soup_uri (webdav_extension);
-               book_cache = e_book_meta_backend_ref_cache (meta_backend);
 
                addressbook = capabilities && g_hash_table_contains (capabilities, 
E_WEBDAV_CAPABILITY_ADDRESSBOOK);
 
@@ -225,7 +223,6 @@ ebb_carddav_connect_sync (EBookMetaBackend *meta_backend,
                        e_source_set_connection_status (source, E_SOURCE_CONNECTION_STATUS_DISCONNECTED);
                }
 
-               g_clear_object (&book_cache);
                soup_uri_free (soup_uri);
        }
 
diff --git a/src/calendar/backends/caldav/e-cal-backend-caldav.c 
b/src/calendar/backends/caldav/e-cal-backend-caldav.c
index f6a81dbb2..c96f518b1 100644
--- a/src/calendar/backends/caldav/e-cal-backend-caldav.c
+++ b/src/calendar/backends/caldav/e-cal-backend-caldav.c
@@ -179,13 +179,11 @@ ecb_caldav_connect_sync (ECalMetaBackend *meta_backend,
 
        if (success) {
                ESourceWebdav *webdav_extension;
-               ECalCache *cal_cache;
                SoupURI *soup_uri;
                gboolean calendar_access;
 
                webdav_extension = e_source_get_extension (source, E_SOURCE_EXTENSION_WEBDAV_BACKEND);
                soup_uri = e_source_webdav_dup_soup_uri (webdav_extension);
-               cal_cache = e_cal_meta_backend_ref_cache (meta_backend);
 
                cbdav->priv->calendar_schedule = e_cal_backend_get_kind (E_CAL_BACKEND (cbdav)) != 
I_CAL_VJOURNAL_COMPONENT &&
                        capabilities && g_hash_table_contains (capabilities, 
E_WEBDAV_CAPABILITY_CALENDAR_SCHEDULE);
@@ -211,7 +209,6 @@ ecb_caldav_connect_sync (ECalMetaBackend *meta_backend,
                        e_source_set_connection_status (source, E_SOURCE_CONNECTION_STATUS_DISCONNECTED);
                }
 
-               g_clear_object (&cal_cache);
                soup_uri_free (soup_uri);
        }
 


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