From fc32e1389ac819cd71a59b1c3a0b2e5d37cbd060 Mon Sep 17 00:00:00 2001 From: you Date: Thu, 19 Mar 2026 21:32:43 +0000 Subject: [PATCH] Remove dead code: svgLine(), .vcr-clock, .vcr-lcd-time display:none rules closes #29 --- public/analytics.js | 10 +--------- public/live.css | 6 ------ 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/public/analytics.js b/public/analytics.js index 6813f3ca..ec815f4c 100644 --- a/public/analytics.js +++ b/public/analytics.js @@ -6,14 +6,6 @@ function esc(s) { return s ? String(s).replace(/&/g,'&').replace(//g,'>').replace(/"/g,'"') : ''; } // --- SVG helpers --- - function svgLine(points, color, w, h, pad, maxX, maxY) { - return points.map((v, i) => { - const x = pad + i * ((w - pad * 2) / Math.max(points.length - 1, 1)); - const y = h - pad - (v / Math.max(maxY, 1)) * (h - pad * 2); - return `${x},${y}`; - }).join(' '); - } - function sparkSvg(data, color, w = 120, h = 32) { if (!data.length) return ''; const max = Math.max(...data, 1); @@ -117,7 +109,7 @@ renderTab('overview'); } catch (e) { document.getElementById('analyticsContent').innerHTML = - `
Failed to load: ${e.message}
`; + ``; } } diff --git a/public/live.css b/public/live.css index 9205cf84..6d160227 100644 --- a/public/live.css +++ b/public/live.css @@ -485,9 +485,6 @@ 50% { opacity: 0.3; } } -.vcr-clock { - display: none; /* replaced by LCD panel */ -} .vcr-lcd { display: flex; flex-direction: column; @@ -514,9 +511,6 @@ text-shadow: 0 0 6px rgba(74, 222, 128, 0.6); font-weight: 700; } -.vcr-lcd-time { - display: none; /* replaced by canvas */ -} .vcr-lcd-canvas { width: 130px; height: 28px;