mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 18:21:39 +02:00
Remove unused function
This commit is contained in:
parent
5552295d61
commit
9ff4567955
1 changed files with 0 additions and 11 deletions
|
@ -80,17 +80,6 @@
|
||||||
(apply-token-to-shape props)
|
(apply-token-to-shape props)
|
||||||
shape))
|
shape))
|
||||||
|
|
||||||
(defn update-token-from-attributes
|
|
||||||
[{:keys [token-id shape-id attributes]}]
|
|
||||||
(ptk/reify ::update-token-from-attributes
|
|
||||||
ptk/WatchEvent
|
|
||||||
(watch [_ state _]
|
|
||||||
(let [shape (get-shape-from-state shape-id state)
|
|
||||||
applied-tokens (apply-token-id-to-attributes {:shape shape
|
|
||||||
:token-id token-id
|
|
||||||
:attributes attributes})]
|
|
||||||
(rx/of (update-shape shape-id {:applied-tokens applied-tokens}))))))
|
|
||||||
|
|
||||||
(defn get-token-data-from-token-id
|
(defn get-token-data-from-token-id
|
||||||
[id]
|
[id]
|
||||||
(let [workspace-data (deref refs/workspace-data)]
|
(let [workspace-data (deref refs/workspace-data)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue