mirror of
https://github.com/penpot/penpot.git
synced 2025-01-06 14:50:20 -05:00
Cleanup
This commit is contained in:
parent
6c3415b92c
commit
9ff3a135a8
1 changed files with 0 additions and 6 deletions
|
@ -50,12 +50,6 @@
|
|||
(let [[shape-leftover token-leftover _matching] (data/diff (:applied-tokens shape) token)]
|
||||
(merge {} shape-leftover token-leftover)))
|
||||
|
||||
(defn get-shape-from-state [shape-id state]
|
||||
(let [current-page-id (get state :current-page-id)
|
||||
shape (-> (workspace-shapes (:workspace-data state) current-page-id #{shape-id})
|
||||
(first))]
|
||||
shape))
|
||||
|
||||
(defn token-from-attributes [token attributes]
|
||||
(->> (map (fn [attr] [attr (wtt/token-identifier token)]) attributes)
|
||||
(into {})))
|
||||
|
|
Loading…
Reference in a new issue