From 22c8482740f8ceda71369eec6cadbd0dd36693b5 Mon Sep 17 00:00:00 2001 From: sHa Date: Fri, 2 May 2025 10:51:34 +0300 Subject: [PATCH] Refactor Grid and List components by removing debug logging for color and theme --- src/components/Grid.svelte | 12 ------------ src/components/List.svelte | 1 - 2 files changed, 13 deletions(-) diff --git a/src/components/Grid.svelte b/src/components/Grid.svelte index 7ae2e2f..d4ccde8 100644 --- a/src/components/Grid.svelte +++ b/src/components/Grid.svelte @@ -28,7 +28,6 @@ export let theme; $: getLogoThemeColor = logo => getDefaultLogoColor(logo.colors, theme); - // Improved debug logging for color and theme for each logo $: { if (logos && logos.length) { logos.forEach(logo => { @@ -40,17 +39,6 @@ $: getLogoThemeColor = logo => getDefaultLogoColor(logo.colors, theme); }); } } - - // Inline SVG logic for color switching - let svgCache = {}; - - async function fetchInlineSvg(path) { - if (svgCache[path]) return svgCache[path]; - const res = await fetch(path); - const text = await res.text(); - svgCache[path] = text; - return text; - } diff --git a/src/components/List.svelte b/src/components/List.svelte index 958e58e..81b6d5d 100644 --- a/src/components/List.svelte +++ b/src/components/List.svelte @@ -50,7 +50,6 @@ $: getLogoThemeColor = logo => getDefaultLogoColor(logo.colors, theme); - // Debug logging for color and theme $: { if (logos && logos.length) { logos.forEach(logo => {