0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-21 06:02:32 -05:00

Remove unneeded function

This commit is contained in:
Florian Schroedl 2024-06-19 09:40:26 +02:00
parent b4d7680cb4
commit 23de79bd04

View file

@ -20,17 +20,6 @@
(.-tokens (.-dictionary res)))})
sd))
;; Helpers ---------------------------------------------------------------------
(defn tokens->tree
"Convert flat tokens list into a tokens tree that is consumable by StyleDictionary."
[tokens]
(reduce
(fn [acc [_ {:keys [type name] :as token}]]
(->> (update token :id str)
(assoc-in acc [type name])))
{} tokens))
;; Functions -------------------------------------------------------------------
(defn tokens->style-dictionary+