From 23071611d67f81b78c9e3f3904077efebb6d6136 Mon Sep 17 00:00:00 2001 From: StempunkDev Date: Tue, 13 Jan 2026 20:50:46 +0100 Subject: [PATCH] refactor: remove redundant element selection in ice editing functions --- public/modules/ui/ice-editor.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/public/modules/ui/ice-editor.js b/public/modules/ui/ice-editor.js index f74ff895..e446acda 100644 --- a/public/modules/ui/ice-editor.js +++ b/public/modules/ui/ice-editor.js @@ -38,8 +38,6 @@ function editIce() { const idx = modules.editIce.currentIndex; Ice.randomizeIcebergShape(idx); redrawIce(); - elSelected = ice.selectAll(`[data-index="${idx}"]`).node(); - elSelected = d3.select(elSelected); } function changeSize() { @@ -47,8 +45,6 @@ function editIce() { const idx = modules.editIce.currentIndex; Ice.changeIcebergSize(idx, newSize); redrawIce(); - elSelected = ice.selectAll(`[data-index="${idx}"]`).node(); - elSelected = d3.select(elSelected); } function toggleAdd() {