mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-16 21:32:18 +02:00
Removes now unused getSunday function
This commit is contained in:
parent
a7bf755d6b
commit
96d27fd44b
@ -116,13 +116,6 @@ export function randSeedEasedWeightedItem<T>(items: T[], easingFunction: string
|
|||||||
return items[Math.floor(easedValue * items.length)];
|
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 {
|
export function getFrameMs(frameCount: integer): integer {
|
||||||
return Math.floor((1 / 60) * 1000 * frameCount);
|
return Math.floor((1 / 60) * 1000 * frameCount);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user