From 23de79bd04c18436de82d91974acfd86d85f6bcf Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Wed, 19 Jun 2024 09:40:26 +0200 Subject: [PATCH] Remove unneeded function --- .../main/ui/workspace/tokens/style_dictionary.cljs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs b/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs index 64fef32eb..d3c6ceef9 100644 --- a/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs @@ -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+