From 8f9c03f400ae54f537f38f4fd628799a546b2eb6 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Sat, 16 Nov 2024 02:47:51 +0200 Subject: [PATCH] Remove commented-out deleteFetcher function from fetchers.ts to clean up code --- frontend/src/units/swr/fetchers.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/frontend/src/units/swr/fetchers.ts b/frontend/src/units/swr/fetchers.ts index a407355..23f7bd9 100644 --- a/frontend/src/units/swr/fetchers.ts +++ b/frontend/src/units/swr/fetchers.ts @@ -34,11 +34,4 @@ async function mutationFetcher(url: string, { arg }: { arg: Command }) }).then(res => res.json()); } -// async function deleteFetcher(url: string, { arg }: { arg: Command }) { -// return fetch(combine(url, arg as number), { -// method: "DELETE", -// headers: getHeaders() -// }).then(res => res.json()); -// } - export { fetcher, mutationFetcher };