🔥 Remove unused code.

This commit is contained in:
Andrey Antukh 2019-09-21 20:13:14 +02:00
parent abc1406f4d
commit 163e102bcf
6 changed files with 10 additions and 239 deletions

View file

@ -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)