aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/e-day-view.c8
-rw-r--r--calendar/gui/e-week-view.c11
2 files changed, 1 insertions, 18 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index ca12b87176..4da82c61a5 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -6722,10 +6722,6 @@ selection_received (GtkWidget *invisible,
/* FIXME: Need to set TZID. */
icalcomponent_set_dtstart (icalcomp, itime);
- itime = icaltime_from_timet_with_zone (dtend, FALSE, day_view->zone);
- /* FIXME: Need to set TZID. */
- icalcomponent_set_dtend (icalcomp, itime);
-
uid = cal_component_gen_uid ();
tmp_comp = cal_component_new ();
cal_component_set_icalcomponent (
@@ -6755,10 +6751,6 @@ selection_received (GtkWidget *invisible,
/* FIXME: Need to set TZID. */
icalcomponent_set_dtstart (icalcomp, itime);
- itime = icaltime_from_timet_with_zone (dtend, FALSE, day_view->zone);
- /* FIXME: Need to set TZID. */
- icalcomponent_set_dtend (icalcomp, itime);
-
comp = cal_component_new ();
cal_component_set_icalcomponent (comp, icalcomp);
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 9fbf7cb660..2e5d2d72e6 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -3586,7 +3586,7 @@ selection_received (GtkWidget *invisible,
{
char *comp_str;
icalcomponent *icalcomp;
- time_t dtstart, dtend;
+ time_t dtstart;
struct icaltimetype itime;
icalcomponent_kind kind;
CalComponent *comp;
@@ -3614,7 +3614,6 @@ selection_received (GtkWidget *invisible,
}
dtstart = week_view->day_starts[week_view->selection_start_day];
- dtend = week_view->day_starts[week_view->selection_end_day + 1];
if (kind == ICAL_VCALENDAR_COMPONENT) {
int num_found = 0;
@@ -3634,10 +3633,6 @@ selection_received (GtkWidget *invisible,
/* FIXME: Need to set TZID. */
icalcomponent_set_dtstart (icalcomp, itime);
- itime = icaltime_from_timet_with_zone (dtend, FALSE, week_view->zone);
- /* FIXME: Need to set TZID. */
- icalcomponent_set_dtend (icalcomp, itime);
-
uid = cal_component_gen_uid ();
tmp_comp = cal_component_new ();
cal_component_set_icalcomponent (
@@ -3667,10 +3662,6 @@ selection_received (GtkWidget *invisible,
/* FIXME: need to set TZID */
icalcomponent_set_dtstart (icalcomp, itime);
- itime = icaltime_from_timet_with_zone (dtend, FALSE, week_view->zone);
- /* FIXME: need to set TZID */
- icalcomponent_set_dtend (icalcomp, itime);
-
comp = cal_component_new ();
cal_component_set_icalcomponent (comp, icalcomp);
uid = cal_component_gen_uid ();