mirror of
https://github.com/penpot/penpot.git
synced 2025-05-23 17:26:11 +02:00
🔥 Remove unused code.
This commit is contained in:
parent
abc1406f4d
commit
163e102bcf
6 changed files with 10 additions and 239 deletions
|
@ -220,13 +220,9 @@
|
|||
shape (geom/selection-rect shape)]
|
||||
[:& controls {:shape shape :zoom zoom :on-click on-click}]))
|
||||
|
||||
(def ^:private shapes-map-iref
|
||||
(-> (l/key :shapes)
|
||||
(l/derive st/state)))
|
||||
|
||||
(mf/defc selection-handlers
|
||||
[{:keys [wst] :as props}]
|
||||
(let [shapes-map (mf/deref shapes-map-iref)
|
||||
(let [shapes-map (mf/deref refs/shapes-by-id)
|
||||
shapes (map #(get shapes-map %) (:selected wst))
|
||||
edition (:edition wst)
|
||||
zoom (:zoom wst 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue