From 0f68fc3a4eef96b187ba9e36f9676fb73955268f Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 13 Apr 2021 16:40:53 +0200 Subject: [PATCH] Remove unused code --- www/calendar/inner.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/www/calendar/inner.js b/www/calendar/inner.js index b6c3f5e8b..196ea510a 100644 --- a/www/calendar/inner.js +++ b/www/calendar/inner.js @@ -684,11 +684,6 @@ Messages.calendar_allDay = "All day"; var startDate = event.start._date; var endDate = event.end._date; - var startDay, endDay; - if (event.isAllDay) { - startDay = startDate.getFullYear() + '-' + (startDate.getMonth()+1) + '-' + startDate.getDate(); - endDay = endDate.getFullYear() + '-' + (endDate.getMonth()+1) + '-' + endDate.getDate(); - } var schedule = { id: Util.uid(), @@ -697,13 +692,10 @@ Messages.calendar_allDay = "All day"; category: "time", location: Util.fixHTML(event.location), start: +startDate, - startDay: startDay, isAllDay: event.isAllDay, end: +endDate, - endDay: endDay }; - newEvent(schedule, function (err) { if (err) { console.error(err);