diff --git a/src/utils.ts b/src/utils.ts index ad0673e904e..90dfe0a21f9 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -116,13 +116,6 @@ export function randSeedEasedWeightedItem(items: T[], easingFunction: string return items[Math.floor(easedValue * items.length)]; } -export function getSunday(date: Date): Date { - const day = date.getUTCDay(); - const diff = date.getUTCDate() - day; - const newDate = new Date(date.setUTCDate(diff)); - return new Date(Date.UTC(newDate.getUTCFullYear(), newDate.getUTCMonth(), newDate.getUTCDate())); -} - export function getFrameMs(frameCount: integer): integer { return Math.floor((1 / 60) * 1000 * frameCount); }