From 25036b065fbd4b50fc14478ed73c55d7db4ddfb4 Mon Sep 17 00:00:00 2001 From: eXhumer <62310242+eXhumer@users.noreply.github.com> Date: Fri, 13 Dec 2024 20:32:50 -0700 Subject: chore: remove dead / double code (#726) * noticed by @KP2048 in https://discord.com/channels/960281551428522045/960284311444131840/1317031315551420447 Signed-off-by: eXhumer --- frontend/src/store.tsx | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/frontend/src/store.tsx b/frontend/src/store.tsx index 5391a15a..dfd9b04b 100644 --- a/frontend/src/store.tsx +++ b/frontend/src/store.tsx @@ -68,27 +68,6 @@ export async function getPluginList( await setSetting('store', Store.Default); store = Store.Default; } - switch (+store) { - case Store.Default: - storeURL = 'https://plugins.deckbrew.xyz/plugins'; - break; - case Store.Testing: - storeURL = 'https://testing.deckbrew.xyz/plugins'; - break; - case Store.Custom: - storeURL = customURL; - break; - default: - console.error('Somehow you ended up without a standard URL, using the default URL.'); - storeURL = 'https://plugins.deckbrew.xyz/plugins'; - break; - return fetch(storeURL, { - method: 'GET', - headers: { - 'X-Decky-Version': version.current, - }, - }).then((r) => r.json()); - } switch (+store) { case Store.Default: storeURL = 'https://plugins.deckbrew.xyz/plugins'; -- cgit v1.2.3