From fb222472739998717bf17f43c220b309f3f72422 Mon Sep 17 00:00:00 2001 From: zamuzakki Date: Thu, 23 Jan 2025 11:56:23 +0700 Subject: [PATCH] Remove unused code --- .../src/pages/Dashboard/MapLibre/utils.js | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/django_project/frontend/src/pages/Dashboard/MapLibre/utils.js b/django_project/frontend/src/pages/Dashboard/MapLibre/utils.js index 3ad5f1c7a..fafe3e38b 100644 --- a/django_project/frontend/src/pages/Dashboard/MapLibre/utils.js +++ b/django_project/frontend/src/pages/Dashboard/MapLibre/utils.js @@ -311,21 +311,4 @@ export const hexToRgba = (hex, alpha = 1, format = 'array') => { } } return `rgba(${r}, ${g}, ${b}, ${alpha})`; -}; - -// /** -// * Convert RGBA to hex -// * @param rgba object -// * @returns hex color with alpha -// */ -// export const rgbaToHex = (rgba) => { -// const toHex = (value) => { -// const hex = Math.round(value).toString(16); -// return hex.padStart(2, "0"); -// }; - - // const alpha = Math.round(rgba.a * 255); // Convert alpha to a value between 0-255 - -// // Combine RGBA components into a single HEX string -// return `#${toHex(rgba.r)}${toHex(rgba.g)}${toHex(rgba.b)}${toHex(alpha)}`; -// } \ No newline at end of file +}; \ No newline at end of file