0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-09 21:41:23 -05:00

🔥 Remove unused API from tokens-lib

Removes the protocol method: `get-set-prefixed-path-string`
This commit is contained in:
Andrey Antukh 2025-03-14 16:01:41 +01:00
parent 5c3709b5d8
commit 802c67ace4

View file

@ -327,8 +327,7 @@
(update-token [_ token-name f] "update a token in the list")
(delete-token [_ token-name] "delete a token from the list")
(get-token [_ token-name] "return token by token-name")
(get-tokens [_] "return an ordered sequence of all tokens in the set")
(get-set-prefixed-path-string [_] "convert set name to prefixed full path string"))
(get-tokens [_] "return an ordered sequence of all tokens in the set"))
(defrecord TokenSet [name description modified-at tokens]
ITokenSet
@ -372,11 +371,7 @@
(get tokens token-name))
(get-tokens [_]
(vals tokens))
(get-set-prefixed-path-string [_]
(-> (set-name->prefixed-full-path name)
(join-set-path))))
(vals tokens)))
(defn token-set?
[o]