From cdb600b0812beb3dcaefdf097324e73bd98007bd Mon Sep 17 00:00:00 2001 From: Aitor Moreno Date: Mon, 21 Jul 2025 11:31:19 +0200 Subject: [PATCH] :sparkles: Remove unused code --- common/src/app/common/types/color.cljc | 1 - common/test/common_tests/colors_test.cljc | 5 ++--- common/test/common_tests/types/fill_test.cljc | 5 ----- common/test/common_tests/types/text_test.cljc | 1 - 4 files changed, 2 insertions(+), 10 deletions(-) diff --git a/common/src/app/common/types/color.cljc b/common/src/app/common/types/color.cljc index c608357655..f80aebf693 100644 --- a/common/src/app/common/types/color.cljc +++ b/common/src/app/common/types/color.cljc @@ -749,4 +749,3 @@ start (if (= idx 0) (first stops) (get stops (dec idx))) end (if (nil? idx) (last stops) (get stops idx))] (interpolate-color start end offset))) - diff --git a/common/test/common_tests/colors_test.cljc b/common/test/common_tests/colors_test.cljc index 10f6439825..9e296bef03 100644 --- a/common/test/common_tests/colors_test.cljc +++ b/common/test/common_tests/colors_test.cljc @@ -7,7 +7,6 @@ (ns common-tests.colors-test (:require #?(:cljs [goog.color :as gcolors]) - [app.common.data :as d] [app.common.types.color :as colors] [clojure.test :as t])) @@ -52,8 +51,8 @@ (t/is (= [1 2 3] (colors/hex->rgb "#010203")))) (t/deftest format-hsla - (t/is (= "210 50% 0.78% / 1" (colors/format-hsla [210.0 0.5 0.00784313725490196 1]))) - (t/is (= "220 5% 30% / 0.8" (colors/format-hsla [220.0 0.05 0.3 0.8])))) + (t/is (= "210, 50%, 0.78%, 1" (colors/format-hsla [210.0 0.5 0.00784313725490196 1]))) + (t/is (= "220, 5%, 30%, 0.8" (colors/format-hsla [220.0 0.05 0.3 0.8])))) (t/deftest format-rgba (t/is (= "210, 199, 12, 0.08" (colors/format-rgba [210 199 12 0.08]))) diff --git a/common/test/common_tests/types/fill_test.cljc b/common/test/common_tests/types/fill_test.cljc index f299115b90..308778bcc1 100644 --- a/common/test/common_tests/types/fill_test.cljc +++ b/common/test/common_tests/types/fill_test.cljc @@ -6,15 +6,10 @@ (ns common-tests.types.fill-test (:require - #?(:clj [app.common.fressian :as fres]) [app.common.data :as d] - [app.common.exceptions :as ex] [app.common.math :as mth] - [app.common.pprint :as pp] - [app.common.pprint :as pp] [app.common.schema.generators :as sg] [app.common.schema.test :as smt] - [app.common.transit :as trans] [app.common.types.fills :as types.fills] [app.common.uuid :as uuid] [clojure.test :as t])) diff --git a/common/test/common_tests/types/text_test.cljc b/common/test/common_tests/types/text_test.cljc index e8279d644e..53043eabad 100644 --- a/common/test/common_tests/types/text_test.cljc +++ b/common/test/common_tests/types/text_test.cljc @@ -7,7 +7,6 @@ (ns common-tests.types.text-test (:require - [app.common.text :as txt] [app.common.types.shape :as cts] [app.common.types.text :as cttx] [clojure.test :as t :include-macros true]))