From dd82b0433c38c1ff307f4a3c9079f58a723fa082 Mon Sep 17 00:00:00 2001 From: Joeri Exelmans Date: Sat, 25 Oct 2025 19:29:27 +0200 Subject: [PATCH] delete unnecessary code --- src/Plant/Microwave/Microwave.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Plant/Microwave/Microwave.tsx b/src/Plant/Microwave/Microwave.tsx index 7693ba5..4feb84f 100644 --- a/src/Plant/Microwave/Microwave.tsx +++ b/src/Plant/Microwave/Microwave.tsx @@ -107,10 +107,6 @@ export function Magnetron({state: {timeDisplay, bell, magnetron}, callbacks}: Mi const bufRunningPromise = useRef(fetchAudioBuffer(sndRunning)); const bufBellPromise = useRef(fetchAudioBuffer(sndBell)); - const refSndBell = useRef(null); - const refSndRunning = useRef(null); - - // a bit hacky: when the bell-state changes to true, we play the bell sound... useEffect(() => { if (bell) { @@ -134,8 +130,6 @@ export function Magnetron({state: {timeDisplay, bell, magnetron}, callbacks}: Mi preload(imgSmallClosedOn, {as: "image"}); preload(imgSmallOpenedOff, {as: "image"}); preload(imgSmallOpenedOn, {as: "image"}); - preload(sndBell, {as: "audio"}); - preload(sndRunning, {as: "audio"}); const openDoor = () => { setDoor("open");