mirror of
https://github.com/LukeHagar/sveltesociety.dev.git
synced 2025-12-07 04:21:40 +00:00
fix: Remove unused function (#486)
This commit is contained in:
@@ -63,19 +63,6 @@
|
|||||||
type = types.find((t) => t.value == typeQuery) || types[0];
|
type = types.find((t) => t.value == typeQuery) || types[0];
|
||||||
});
|
});
|
||||||
|
|
||||||
function padWithZero(date) {
|
|
||||||
return date.toString().padStart(2, '0');
|
|
||||||
}
|
|
||||||
|
|
||||||
function todaysDate() {
|
|
||||||
const date = new Date();
|
|
||||||
const day = padWithZero(date.getDate());
|
|
||||||
const month = padWithZero(date.getMonth() + 1);
|
|
||||||
const year = date.getFullYear();
|
|
||||||
const sep = '-';
|
|
||||||
return [year, month, day].join(sep);
|
|
||||||
}
|
|
||||||
|
|
||||||
async function clearCategoryAndTags() {
|
async function clearCategoryAndTags() {
|
||||||
await tick();
|
await tick();
|
||||||
category = null;
|
category = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user