From 95d624400888766becdf96e38cc1a99a16665d47 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Wed, 22 Dec 2021 00:43:15 +0100 Subject: [PATCH] Remove obsolete console.logs --- Logic/Osm/Actions/ReplaceGeometryAction.ts | 3 +-- UI/BigComponents/LeftControls.ts | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Logic/Osm/Actions/ReplaceGeometryAction.ts b/Logic/Osm/Actions/ReplaceGeometryAction.ts index 7c7202d23..3b4aa31ef 100644 --- a/Logic/Osm/Actions/ReplaceGeometryAction.ts +++ b/Logic/Osm/Actions/ReplaceGeometryAction.ts @@ -64,7 +64,6 @@ export default class ReplaceGeometryAction extends OsmChangeAction { for (let j = i + 1; j < coordinates.length; j++) { const d = GeoOperations.distanceBetween(coordinates[i], coordinates[j]) if (d < 0.1) { - console.log("Identical coordinates detected: ", i, " and ", j, ": ", coordinates[i], coordinates[j], "distance is", d) this.identicalTo[j] = i } } @@ -77,7 +76,7 @@ export default class ReplaceGeometryAction extends OsmChangeAction { public async getPreview(): Promise { const {closestIds, allNodesById} = await this.GetClosestIds(); - console.log("Generating preview, identicals are ",) + console.debug("Generating preview, identicals are ",) const preview = closestIds.map((newId, i) => { if (this.identicalTo[i] !== undefined) { return undefined diff --git a/UI/BigComponents/LeftControls.ts b/UI/BigComponents/LeftControls.ts index 6fe0a317b..a669b856c 100644 --- a/UI/BigComponents/LeftControls.ts +++ b/UI/BigComponents/LeftControls.ts @@ -62,7 +62,6 @@ export default class LeftControls extends Combine { const elem = currentViewFL.layerDef.mapRendering[0]?.GenerateLeafletStyle(new UIEventSource(tags), false, { noSize: true })?.html - console.log("Elem is ", elem, "for", tags) if (elem === undefined) { return defaultIcon }