From 138b2ada2f92b2be6e114681aab2eb1e862e43e4 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 12 Jun 2023 01:40:22 +0200 Subject: [PATCH] Chore: remove some obsolete console.log-statements --- UI/Popup/TagRendering/FreeformInput.svelte | 2 -- UI/Popup/TagRendering/Inline.svelte | 7 ------- Utils.ts | 2 -- 3 files changed, 11 deletions(-) diff --git a/UI/Popup/TagRendering/FreeformInput.svelte b/UI/Popup/TagRendering/FreeformInput.svelte index 863be4d90..f3f89e210 100644 --- a/UI/Popup/TagRendering/FreeformInput.svelte +++ b/UI/Popup/TagRendering/FreeformInput.svelte @@ -19,13 +19,11 @@ let placeholder = config.freeform?.placeholder let inline = config.freeform?.inline $: { - console.log("Config is", config) placeholder = config.freeform?.placeholder inline = false inline = config.freeform?.inline } - console.log("Inline is", inline ) export let feedback: UIEventSource = new UIEventSource(undefined); let dispatch = createEventDispatcher<{ "selected" }>(); diff --git a/UI/Popup/TagRendering/Inline.svelte b/UI/Popup/TagRendering/Inline.svelte index b8df7bf8d..ec72810cd 100644 --- a/UI/Popup/TagRendering/Inline.svelte +++ b/UI/Popup/TagRendering/Inline.svelte @@ -24,7 +24,6 @@ const splt = _template.split("{" + key + "}") before = splt[0] after = splt[1] - console.log("Updating template to", _template, before, after) } })) @@ -34,14 +33,8 @@ const splt = _template.split("{" + key + "}") before = splt[0] after = splt[1] - console.log("Updating template to", _template, before, after) } } - - - $: { - console.log("B/A:", before, after) - } diff --git a/Utils.ts b/Utils.ts index f16863aa2..cb4e5bf6c 100644 --- a/Utils.ts +++ b/Utils.ts @@ -1350,7 +1350,6 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be } public static scrollIntoView(element: HTMLBaseElement) { - console.log("Scrolling into view:", element) // Is the element completely in the view? const parentRect = Utils.findParentWithScrolling( element @@ -1364,7 +1363,6 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be if (inView) { return } - console.log("Actually scrolling...") element.scrollIntoView({behavior: "smooth", block: "nearest"}) }