mirror of
https://github.com/penpot/penpot.git
synced 2025-02-03 04:49:03 -05:00
Remove unused code from colors library ns.
This commit is contained in:
parent
11bb081c7c
commit
71d00f5970
2 changed files with 4 additions and 10 deletions
|
@ -2,6 +2,10 @@
|
||||||
(:require [uxbox.library.colors :as colors]
|
(:require [uxbox.library.colors :as colors]
|
||||||
[uxbox.util.data :refer (index-by-id)]))
|
[uxbox.util.data :refer (index-by-id)]))
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
;; Colors
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
(def ^:static +color-collections+
|
(def ^:static +color-collections+
|
||||||
colors/+collections+)
|
colors/+collections+)
|
||||||
|
|
||||||
|
|
|
@ -33,16 +33,6 @@
|
||||||
(as-> (ul/dep-in [:colors-by-id] [:dashboard :collection-id]) $
|
(as-> (ul/dep-in [:colors-by-id] [:dashboard :collection-id]) $
|
||||||
(l/focus-atom $ st/state)))
|
(l/focus-atom $ st/state)))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
;; Helpers
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
|
|
||||||
(defn- get-collection
|
|
||||||
[type id]
|
|
||||||
(case type
|
|
||||||
:builtin (get library/+color-collections-by-id+ id)
|
|
||||||
:own (get-in @st/state [:colors-by-id id])))
|
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; Menu
|
;; Menu
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue