mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 00:40:30 -05:00
🔥 Remove unused code.
This commit is contained in:
parent
1bde48730c
commit
65b579c6b6
3 changed files with 1 additions and 10 deletions
|
@ -121,12 +121,6 @@
|
|||
(def workspace-snap-data
|
||||
(l/derived :workspace-snap-data st/state))
|
||||
|
||||
;; TODO: BROKEN & TO BE REMOVED
|
||||
(def workspace-data
|
||||
(-> #(let [page-id (get-in % [:workspace-page :id])]
|
||||
(get-in % [:workspace-data page-id]))
|
||||
(l/derived st/state)))
|
||||
|
||||
(def workspace-page
|
||||
(l/derived (fn [state]
|
||||
(let [page-id (:current-page-id state)
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
(let [selected (mf/deref refs/selected-shapes)
|
||||
|
||||
;; don't need to watch objects, only read the value
|
||||
objects (:objects (deref refs/workspace-data))
|
||||
objects (deref refs/workspace-page-objects)
|
||||
|
||||
disabled (cond
|
||||
(empty? selected) true
|
||||
|
|
|
@ -18,9 +18,6 @@
|
|||
[app.util.i18n :as i18n :refer [t]]
|
||||
[app.main.ui.workspace.sidebar.options.rows.color-row :refer [color-row]]))
|
||||
|
||||
(def options-iref
|
||||
(l/derived :options refs/workspace-data))
|
||||
|
||||
(defn use-change-color [page-id]
|
||||
(mf/use-callback
|
||||
(mf/deps page-id)
|
||||
|
|
Loading…
Reference in a new issue