From 0c036e3066f59704a61b92a3f35530efede9b4b8 Mon Sep 17 00:00:00 2001 From: Matt Jensen Date: Thu, 16 Nov 2023 10:54:46 -0600 Subject: [PATCH] fix: remove unnecessary logging. --- src/tracking/TrackingManager.tsx | 20 -------------------- src/tracking/adsbx/ADSBXTrackingProvider.tsx | 3 --- 2 files changed, 23 deletions(-) diff --git a/src/tracking/TrackingManager.tsx b/src/tracking/TrackingManager.tsx index 2d0841f..55e21a8 100644 --- a/src/tracking/TrackingManager.tsx +++ b/src/tracking/TrackingManager.tsx @@ -36,28 +36,8 @@ export function TrackingManager({children, service}: PropsWithChildren { - console.log("dispatch changed"); - }, [dispatch]); - - useEffect(() => { - console.log("service changed"); - }, [service]); - - useEffect(() => { - console.log("ids changed"); - }, [...ids]); - - useEffect(() => { - console.log("updatePositions changed"); - }, [updatePositions]); - - /* Effect to defer a position update upon expiration of the tracking interval. */ const {nextUpdate} = state; - useEffect(() => { - console.log("nextUpdate changed"); - }, [nextUpdate]); useEffect(() => { const delay = nextUpdate.diff(DateTime.utc()).toMillis(); if (delay <= 0) { diff --git a/src/tracking/adsbx/ADSBXTrackingProvider.tsx b/src/tracking/adsbx/ADSBXTrackingProvider.tsx index 22b89b5..b089b83 100644 --- a/src/tracking/adsbx/ADSBXTrackingProvider.tsx +++ b/src/tracking/adsbx/ADSBXTrackingProvider.tsx @@ -43,9 +43,6 @@ export function ADSBXTrackingProvider({children, ...props}: PropsWithChildren { - console.log("positionService changed."); - }, [positionService]); return ( {children}