fix(calendars.js): Remove unused function

This commit is contained in:
sinavir 2024-06-27 21:30:54 +02:00
parent f2bbd93c75
commit 3fd72124c0

View file

@ -190,14 +190,6 @@ function fcEventFromjCalEvent(cal) {
}
}
function mkEventsFromCalendar(id, cal) {
return fetchCalendar(id, cal).then(calendar => {
if (calendar[0] !== 'vcalendar') return
const cal = new Calendar(id, calendar)
return cal.events.map(fcEventFromjCalEvent(cal))
})
}
export function mkSource(name) {
const calendarId = calendarsByName[name]
if (!calendarId) return null