From c0c0111aa4be0589ac81521052094834ccb02559 Mon Sep 17 00:00:00 2001 From: Monchee Date: Sat, 22 Aug 2026 20:58:18 +1000 Subject: [PATCH] fix: remove the orphaned findDreamOnly resolver Tranche 4 emptied DREAM_ONLY_PROTOCOLS, leaving drugMasterlist's findDreamOnly without callers; --max-warnings 0 lint failed CI. The DREAM_ONLY_PROTOCOLS re-export stays for backwards compatibility. --- src/shared/data/drugMasterlist.ts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/shared/data/drugMasterlist.ts b/src/shared/data/drugMasterlist.ts index 3875da2..860aeb6 100644 --- a/src/shared/data/drugMasterlist.ts +++ b/src/shared/data/drugMasterlist.ts @@ -21,23 +21,6 @@ function findGenerated( return match; } -function findDreamOnly( - drugName: string, - testType: 'skin' | 'challenge' | 'control' | 'experimental', - protocolLabel?: string -): DrugProtocol { - const match = DREAM_ONLY_PROTOCOLS.find( - (p) => - p.drugName === drugName && - p.testType === testType && - (!protocolLabel || p.protocolLabel === protocolLabel) - ); - if (!match) { - throw new Error(`Missing DREAM-only protocol for ${drugName} (${testType}${protocolLabel ? ` - ${protocolLabel}` : ''})`); - } - return match; -} - /** * Complete drug masterlist for allergy testing and challenges. * Combines generated protocols from SCRATCH (protocols.snapshot.json) with