[evolution-data-server] Bug 741276 - [CalDAV] Remove dead code
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug 741276 - [CalDAV] Remove dead code
- Date: Mon, 5 Jan 2015 15:06:33 +0000 (UTC)
commit b1dfd4d5800e123307aaac96cac89d3673f4c93b
Author: Philip Withnall <philip tecnocode co uk>
Date: Mon Jan 5 16:06:20 2015 +0100
Bug 741276 - [CalDAV] Remove dead code
Coverity issue: #1257050
calendar/backends/caldav/e-cal-backend-caldav.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/calendar/backends/caldav/e-cal-backend-caldav.c b/calendar/backends/caldav/e-cal-backend-caldav.c
index d3e835f..a4425a5 100644
--- a/calendar/backends/caldav/e-cal-backend-caldav.c
+++ b/calendar/backends/caldav/e-cal-backend-caldav.c
@@ -4161,7 +4161,6 @@ do_modify_objects (ECalBackendCalDAV *cbdav,
master_comp = get_master_comp (cbdav, cache_comp);
if (e_cal_component_is_instance (comp) && master_comp) {
ECalComponent *mcomp;
- gboolean processed = FALSE;
struct icaltimetype rid, master_dtstart;
icalcomponent *icalcomp = e_cal_component_get_icalcomponent (comp);
icalcomponent *split_icalcomp;
@@ -4218,8 +4217,6 @@ do_modify_objects (ECalBackendCalDAV *cbdav,
g_clear_object (&prev_comp);
}
- processed = TRUE;
-
cache_comp = replace_master (cbdav, cache_comp, icalcomponent_new_clone
(master_comp));
if (split_icalcomp) {
gchar *new_uid;
@@ -4262,9 +4259,6 @@ do_modify_objects (ECalBackendCalDAV *cbdav,
}
g_clear_object (&mcomp);
-
- if (!processed)
- cache_comp = replace_master (cbdav, cache_comp, icalcomponent_new_clone
(e_cal_component_get_icalcomponent (comp)));
} else {
cache_comp = replace_master (cbdav, cache_comp, icalcomponent_new_clone
(e_cal_component_get_icalcomponent (comp)));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]