From 91fa27241faf177d84029146bd86ef595caad08b Mon Sep 17 00:00:00 2001 From: Batuhan Tomo Date: Wed, 1 May 2024 15:15:01 +0300 Subject: [PATCH] Fix #5671: Unused codes removed --- components/lib/colorpicker/ColorPicker.vue | 23 ---------------------- 1 file changed, 23 deletions(-) diff --git a/components/lib/colorpicker/ColorPicker.vue b/components/lib/colorpicker/ColorPicker.vue index 2d0156627..dd23ba324 100755 --- a/components/lib/colorpicker/ColorPicker.vue +++ b/components/lib/colorpicker/ColorPicker.vue @@ -178,29 +178,6 @@ export default { b: Math.min(100, Math.max(0, hsb.b)) }; }, - validateRGB(rgb) { - return { - r: Math.min(255, Math.max(0, rgb.r)), - g: Math.min(255, Math.max(0, rgb.g)), - b: Math.min(255, Math.max(0, rgb.b)) - }; - }, - validateHEX(hex) { - var len = 6 - hex.length; - - if (len > 0) { - var o = []; - - for (var i = 0; i < len; i++) { - o.push('0'); - } - - o.push(hex); - hex = o.join(''); - } - - return hex; - }, HEXtoRGB(hex) { let hexValue = parseInt(hex.indexOf('#') > -1 ? hex.substring(1) : hex, 16);