From 5223b6f8e950509426a1869de9f4b7e0c39511b0 Mon Sep 17 00:00:00 2001 From: Cameron Clough Date: Tue, 11 Jul 2023 23:28:20 +0100 Subject: [PATCH] DriveMap: remove unused ref --- src/components/DriveMap/index.jsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/components/DriveMap/index.jsx b/src/components/DriveMap/index.jsx index b06ab708d..929da70f6 100644 --- a/src/components/DriveMap/index.jsx +++ b/src/components/DriveMap/index.jsx @@ -35,8 +35,6 @@ class DriveMap extends Component { this.updateMarkerPos = this.updateMarkerPos.bind(this); this.onInteraction = this.onInteraction.bind(this); - this.ref = React.createRef(); - this.shouldFlyTo = false; this.isInteracting = false; this.isInteractingTimeout = null; @@ -154,7 +152,6 @@ class DriveMap extends Component { } onRef(el) { - this.ref.current = el; if (el) { el.addEventListener('touchstart', (ev) => ev.stopPropagation()); }