From cf55aeda639d9f1d08bb1fb94c325005e955ae68 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Sun, 25 Dec 2016 21:28:45 +0100 Subject: [PATCH] Remove unused code from data/shapes. --- frontend/src/uxbox/main/data/shapes.cljs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/frontend/src/uxbox/main/data/shapes.cljs b/frontend/src/uxbox/main/data/shapes.cljs index 1f2530df4..ead76ec96 100644 --- a/frontend/src/uxbox/main/data/shapes.cljs +++ b/frontend/src/uxbox/main/data/shapes.cljs @@ -126,22 +126,12 @@ ;; --- Apply Temporal Displacement -(defn rotate - [{:keys [x1 y1 x2 y2 rotation] :as shape}] - (let [x-center (+ x1 (/ (- x2 x1) 2)) - y-center (+ y1 (/ (- y2 y1) 2))] - (-> (gmt/matrix) - #_(gmt/translate x-center y-center) - (gmt/rotate 15) - #_(gmt/translate (- x-center) (- y-center))))) - (deftype ApplyTemporalDisplacement [id delta] udp/IPageUpdate ptk/UpdateEvent (update [_ state] (let [shape (get-in state [:shapes id]) displ (:tmp-displacement shape (gpt/point 0 0)) - ;; delta (gpt/transform delta (rotate shape)) delta (gpt/add displ delta)] (assoc-in state [:shapes id :tmp-displacement] delta))))