mirror of
https://github.com/prncc/obsidian-repeat-plugin.git
synced 2026-07-22 06:50:25 +00:00
Remove unused utility
This commit is contained in:
parent
5f138d1bbe
commit
01f653a730
1 changed files with 0 additions and 14 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue