From 647d62dbd2444399dbd1b102df69c64230977ab0 Mon Sep 17 00:00:00 2001 From: Matt Isenhower Date: Sat, 31 Jan 2026 20:04:14 -0800 Subject: [PATCH] Remove dead code in GearCard and App components Remove permanently disabled v-if="false" Order button block and its unused SquidTape import from GearCard. Remove unnecessary try-catch around mobile browser detection in App. Co-Authored-By: Claude Opus 4.5 --- src/App.vue | 10 +++------- src/components/gear/GearCard.vue | 23 ++--------------------- 2 files changed, 5 insertions(+), 28 deletions(-) diff --git a/src/App.vue b/src/App.vue index 923baa9..652b17b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -16,13 +16,9 @@ const data = useDataStore(); onMounted(() => data.startUpdating()); onUnmounted(() => data.stopUpdating()); -try { - // Detect mobile browsers - if (navigator.userAgent.match(/iPhone|iPad|Android/i)) { - document.body.classList.add('is-mobile'); - } -} catch (e) { - // +// Detect mobile browsers +if (navigator.userAgent.match(/iPhone|iPad|Android/i)) { + document.body.classList.add('is-mobile'); } diff --git a/src/components/gear/GearCard.vue b/src/components/gear/GearCard.vue index a67d594..1f5033e 100644 --- a/src/components/gear/GearCard.vue +++ b/src/components/gear/GearCard.vue @@ -54,23 +54,8 @@ - -
- - + +
{{ $t('time.left', { time: formatDurationHoursFromNow(props.gear.saleEndTime) }) }}
@@ -80,9 +65,7 @@