From e855ecc34926df6e2cc49e7e34c73ddba0be0e17 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Wed, 24 Apr 2024 14:21:19 +0200 Subject: [PATCH] Remove unused code --- src/routes/+page.server.ts | 17 +++++++---------- src/routes/timer/+page.svelte | 12 ------------ 2 files changed, 7 insertions(+), 22 deletions(-) diff --git a/src/routes/+page.server.ts b/src/routes/+page.server.ts index 15ff7c0..124d7c5 100644 --- a/src/routes/+page.server.ts +++ b/src/routes/+page.server.ts @@ -5,15 +5,12 @@ const TEN_YEARS_IN_SECONDS = 10 * 365 * 24 * 60 * 60 export const actions: Actions = { theme: async ({ cookies, request }) => { - const data = await request.formData() - const theme = data.get("theme") - - if (!isValidTheme(theme)) { - return fail(400, { theme, missing: true }) - } - - cookies.set("theme", theme, { path: "/", maxAge: TEN_YEARS_IN_SECONDS }) - - return { success: true } + // const data = await request.formData() + // const theme = data.get("theme") + // if (!isValidTheme(theme)) { + // return fail(400, { theme, missing: true }) + // } + // cookies.set("theme", theme, { path: "/", maxAge: TEN_YEARS_IN_SECONDS }) + // return { success: true } }, } diff --git a/src/routes/timer/+page.svelte b/src/routes/timer/+page.svelte index 3fae3ff..117d796 100644 --- a/src/routes/timer/+page.svelte +++ b/src/routes/timer/+page.svelte @@ -1,15 +1,3 @@ - -