Skip to content

Commit

Permalink
fix: remove unnecessary logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Jensen committed Nov 16, 2023
1 parent a975b5e commit 0c036e3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
20 changes: 0 additions & 20 deletions src/tracking/TrackingManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,28 +36,8 @@ export function TrackingManager({children, service}: PropsWithChildren<TrackingM
});
}, [dispatch, service, ...ids]);

useEffect(() => {
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) {
Expand Down
3 changes: 0 additions & 3 deletions src/tracking/adsbx/ADSBXTrackingProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ export function ADSBXTrackingProvider({children, ...props}: PropsWithChildren<AD
const client = ADSBXClient.create(axios.request);
return ADSBXPositionService.create(client);
}, [axiosFactory, auth, href]);
useEffect(() => {
console.log("positionService changed.");
}, [positionService]);
return (
<TrackingManager service={positionService}>
{children}
Expand Down

0 comments on commit 0c036e3

Please sign in to comment.