From 01f653a73036d59b6ecc8baddc1e59b2147aaae1 Mon Sep 17 00:00:00 2001 From: Andre Perunicic Date: Mon, 2 Sep 2024 14:18:23 +0000 Subject: [PATCH] Remove unused utility --- src/repeat/parsers.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/repeat/parsers.ts b/src/repeat/parsers.ts index 5c5cd0c..6305ed3 100644 --- a/src/repeat/parsers.ts +++ b/src/repeat/parsers.ts @@ -13,20 +13,6 @@ import { const joinedUnits = 'hour|day|week|month|year'; -export function makeDefaultRepetition( - repeatStrategy: string, - repeatDueAt?: DateTime, -): Repetition { - return { - repeatStrategy: repeatStrategy as Strategy, - repeatPeriod: 1, - repeatPeriodUnit: 'DAY' as PeriodUnit, - repeatTimeOfDay: 'AM' as TimeOfDay, - repeatDueAt: repeatDueAt || DateTime.now().plus({ day: 1 }), - hidden: false, - }; -} - function parseRepeatPeriodUnit(unitDescription: string): PeriodUnit { const processedUnitDescription = unitDescription.trim(); switch (processedUnitDescription) {