Remove unused code

This commit is contained in:
Aitor Moreno 2025-07-21 11:31:19 +02:00 committed by Andrey Antukh
parent ffb688696b
commit cdb600b081
4 changed files with 2 additions and 10 deletions

View file

@ -749,4 +749,3 @@
start (if (= idx 0) (first stops) (get stops (dec idx))) start (if (= idx 0) (first stops) (get stops (dec idx)))
end (if (nil? idx) (last stops) (get stops idx))] end (if (nil? idx) (last stops) (get stops idx))]
(interpolate-color start end offset))) (interpolate-color start end offset)))

View file

@ -7,7 +7,6 @@
(ns common-tests.colors-test (ns common-tests.colors-test
(:require (:require
#?(:cljs [goog.color :as gcolors]) #?(:cljs [goog.color :as gcolors])
[app.common.data :as d]
[app.common.types.color :as colors] [app.common.types.color :as colors]
[clojure.test :as t])) [clojure.test :as t]))
@ -52,8 +51,8 @@
(t/is (= [1 2 3] (colors/hex->rgb "#010203")))) (t/is (= [1 2 3] (colors/hex->rgb "#010203"))))
(t/deftest format-hsla (t/deftest format-hsla
(t/is (= "210 50% 0.78% / 1" (colors/format-hsla [210.0 0.5 0.00784313725490196 1]))) (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 (= "220, 5%, 30%, 0.8" (colors/format-hsla [220.0 0.05 0.3 0.8]))))
(t/deftest format-rgba (t/deftest format-rgba
(t/is (= "210, 199, 12, 0.08" (colors/format-rgba [210 199 12 0.08]))) (t/is (= "210, 199, 12, 0.08" (colors/format-rgba [210 199 12 0.08])))

View file

@ -6,15 +6,10 @@
(ns common-tests.types.fill-test (ns common-tests.types.fill-test
(:require (:require
#?(:clj [app.common.fressian :as fres])
[app.common.data :as d] [app.common.data :as d]
[app.common.exceptions :as ex]
[app.common.math :as mth] [app.common.math :as mth]
[app.common.pprint :as pp]
[app.common.pprint :as pp]
[app.common.schema.generators :as sg] [app.common.schema.generators :as sg]
[app.common.schema.test :as smt] [app.common.schema.test :as smt]
[app.common.transit :as trans]
[app.common.types.fills :as types.fills] [app.common.types.fills :as types.fills]
[app.common.uuid :as uuid] [app.common.uuid :as uuid]
[clojure.test :as t])) [clojure.test :as t]))

View file

@ -7,7 +7,6 @@
(ns common-tests.types.text-test (ns common-tests.types.text-test
(:require (:require
[app.common.text :as txt]
[app.common.types.shape :as cts] [app.common.types.shape :as cts]
[app.common.types.text :as cttx] [app.common.types.text :as cttx]
[clojure.test :as t :include-macros true])) [clojure.test :as t :include-macros true]))