From 5c3709b5d84c9343cc9e04d768163cbf97502674 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 14 Mar 2025 16:00:20 +0100 Subject: [PATCH] :fire: Remove unused API from tokens-lib Removes the protocol method: `get-tokens-tree` --- common/src/app/common/types/tokens_lib.cljc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/common/src/app/common/types/tokens_lib.cljc b/common/src/app/common/types/tokens_lib.cljc index 441e7a3aca..e572e9446d 100644 --- a/common/src/app/common/types/tokens_lib.cljc +++ b/common/src/app/common/types/tokens_lib.cljc @@ -328,8 +328,7 @@ (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-tree [_] "returns a tree of tokens split & nested by their name path")) + (get-set-prefixed-path-string [_] "convert set name to prefixed full path string")) (defrecord TokenSet [name description modified-at tokens] ITokenSet @@ -377,10 +376,7 @@ (get-set-prefixed-path-string [_] (-> (set-name->prefixed-full-path name) - (join-set-path))) - - (get-tokens-tree [_] - (tokens-tree tokens))) + (join-set-path)))) (defn token-set? [o]