From 8e891fd47caf32bb5622c3b174ad1e375a9a88b4 Mon Sep 17 00:00:00 2001 From: Xavier Julian Date: Mon, 17 Nov 2025 11:45:32 +0100 Subject: [PATCH] :recycle: Remove duplicated utility --- .../src/app/main/ui/inspect/common/colors.cljs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/frontend/src/app/main/ui/inspect/common/colors.cljs b/frontend/src/app/main/ui/inspect/common/colors.cljs index 347f964ef3..43b834ebfd 100644 --- a/frontend/src/app/main/ui/inspect/common/colors.cljs +++ b/frontend/src/app/main/ui/inspect/common/colors.cljs @@ -6,8 +6,6 @@ (ns app.main.ui.inspect.common.colors (:require - [app.common.data.macros :as dm] - [app.common.types.color :as cc] [app.main.store :as st] [okulary.core :as l] [rumext.v2 :as mf])) @@ -27,15 +25,3 @@ (let [library (mf/with-memo [ref-file] (make-colors-library-ref :files ref-file))] (mf/deref library))) - -(defn color->color-space->css-format - [color color-space] - (let [color-value (:color color) - color-opacity (or (:opacity color) 1)] - (case color-space - "hex" color - "rgba" (let [[r g b a] (cc/hex->rgba color-value color-opacity)] - (dm/str "rgba(" (cc/format-rgba [r g b a]) ")")) - "hsla" (let [[h s l a] (cc/hex->hsla color-value color-opacity)] - (dm/str "hsla(" (cc/format-hsla [h s l a]) ")")) - (:color color))))