From 2e8f3f414bf69b2057a68f20b24dd370ad35f07a Mon Sep 17 00:00:00 2001 From: NSSure <19178714+NSSure@users.noreply.github.com> Date: Sat, 22 Oct 2022 05:48:34 -0400 Subject: [PATCH] Removed test code updating palette --- js/ColorModule.js | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/js/ColorModule.js b/js/ColorModule.js index 0fac69e..8ee599b 100644 --- a/js/ColorModule.js +++ b/js/ColorModule.js @@ -410,30 +410,6 @@ const ColorModule = (() => { addColor(layersPaletteArray[i]); } - - return; - - // Compare the current layer colors to the current palette and add any layer colors that aren't in the palette. - let mergedPalette = [...currentPalette]; - - for (let i = 0; i < layersPaletteArray.length; i++) { - let isNewPaletteColor = true; - - for (let j = 0; j < currentPalette.length; j++) { - // If the layer color matches an existing palette color skip it so it isn't added again. - if (layersPaletteArray[i] === mergedPalette[j]) { - isNewPaletteColor = false; - break; - } - } - - if (isNewPaletteColor) { - mergedPalette.push(layersPaletteArray[i]); - } - } - - // Recreate the palette using the merged colors array. - createColorPalette(mergedPalette); } /**