mirror of
https://github.com/penpot/penpot.git
synced 2025-01-22 22:49:01 -05:00
Remove unused code from workspace data ns.
This commit is contained in:
parent
311d107b36
commit
dd94224383
1 changed files with 0 additions and 13 deletions
|
@ -123,21 +123,8 @@
|
||||||
(-apply-update [_ state]
|
(-apply-update [_ state]
|
||||||
;; (println "apply-delta" shapeid delta)
|
;; (println "apply-delta" shapeid delta)
|
||||||
(let [pageid (get-in state [:workspace :page])
|
(let [pageid (get-in state [:workspace :page])
|
||||||
_ (assert pageid)
|
|
||||||
shape (get-in state [:pages-by-id pageid :shapes-by-id shapeid])]
|
shape (get-in state [:pages-by-id pageid :shapes-by-id shapeid])]
|
||||||
(update-in state [:pages-by-id pageid :shapes-by-id shapeid] merge
|
(update-in state [:pages-by-id pageid :shapes-by-id shapeid] merge
|
||||||
{:x (+ (:x shape) dx)
|
{:x (+ (:x shape) dx)
|
||||||
:y (+ (:y shape) dy)})))))
|
:y (+ (:y shape) dy)})))))
|
||||||
|
|
||||||
|
|
||||||
;; (defn apply-delta'
|
|
||||||
;; "Mark a shape selected for drawing in the canvas."
|
|
||||||
;; [shapeid [dx dy :as delta]]
|
|
||||||
;; (reify
|
|
||||||
;; rs/UpdateEvent
|
|
||||||
;; (-apply-update [_ state]
|
|
||||||
;; ;; (println "apply-delta'" shapeid delta)
|
|
||||||
;; (let [pageid (get-in state [:workspace :page])
|
|
||||||
;; shape (get-in state [:pages-by-id pageid :shapes-by-id shapeid])]
|
|
||||||
;; (update-in state [:pages-by-id pageid :shapes-by-id shapeid] merge
|
|
||||||
;; {:x dx :y dy})))))
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue