mirror of
https://github.com/LukeHagar/sveltesociety.dev.git
synced 2025-12-06 12:47:44 +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];
|
||||
});
|
||||
|
||||
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() {
|
||||
await tick();
|
||||
category = null;
|
||||
|
||||
Reference in New Issue
Block a user