From 2454ddfdd0f180ddfa94c3da5725ed06f23d1b26 Mon Sep 17 00:00:00 2001 From: Kevin Wu Date: Sun, 4 Feb 2024 22:26:12 -0800 Subject: [PATCH] fix: remove dupe code (#873) --- apps/antalmanac/src/components/Map/Map.tsx | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/apps/antalmanac/src/components/Map/Map.tsx b/apps/antalmanac/src/components/Map/Map.tsx index f54462b0e..58c93c8a1 100644 --- a/apps/antalmanac/src/components/Map/Map.tsx +++ b/apps/antalmanac/src/components/Map/Map.tsx @@ -183,20 +183,6 @@ export default function CourseMap() { }; }, []); - useEffect(() => { - const updateCustomEventMarkers = () => { - setCustomEventMarkers(getCustomEventPerBuilding()); - }; - - AppStore.on('customEventsChange', updateCustomEventMarkers); - AppStore.on('currentScheduleIndexChange', updateCustomEventMarkers); - - return () => { - AppStore.removeListener('customEventsChange', updateCustomEventMarkers); - AppStore.removeListener('currentScheduleIndexChange', updateCustomEventMarkers); - }; - }, []); - useEffect(() => { const locationID = Number(searchParams.get('location') ?? 0); const building = locationID in buildingCatalogue ? buildingCatalogue[locationID] : undefined;