fix: Remove unused function (#486)

This commit is contained in:
Lachlan Collins
2023-11-14 05:42:37 +11:00
committed by GitHub
parent 1cb43b2239
commit f2bc8a9a25

View File

@@ -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;