From 10cfd5b56fba086baa4f329b1d355abcd9220480 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Wed, 16 Dec 2020 19:18:10 +0000 Subject: [PATCH] Cleanup --- src/leaflet/control/LogoControl.ts | 9 --------- src/util/areas.ts | 1 - 2 files changed, 10 deletions(-) diff --git a/src/leaflet/control/LogoControl.ts b/src/leaflet/control/LogoControl.ts index 44143b9..107a153 100644 --- a/src/leaflet/control/LogoControl.ts +++ b/src/leaflet/control/LogoControl.ts @@ -53,12 +53,3 @@ export class LogoControl extends Control { return container; } } - -// -// dynmap.map.options.attributionControl = false; -// if (dynmap.map.attributionControl) { -// dynmap.map.removeControl(dynmap.map.attributionControl); -// dynmap.map.attributionControl = null; -// } -// } -// ; diff --git a/src/util/areas.ts b/src/util/areas.ts index e7bc2f9..8619291 100644 --- a/src/util/areas.ts +++ b/src/util/areas.ts @@ -49,7 +49,6 @@ export const updateArea = (area: Polyline | Polygon | undefined, options: Dynmap dirty = true; } - if(!arePointsEqual(oldPoints.length === 1 ? oldPoints[0] : oldPoints, points)) { area.setLatLngs(points); dirty = true;