mirror of
https://github.com/penpot/penpot.git
synced 2025-08-01 18:28:22 +02:00
🔥 Remove unused code
This commit is contained in:
parent
50f30eb12f
commit
c405e9a7a3
1 changed files with 0 additions and 24 deletions
|
@ -14,34 +14,10 @@
|
||||||
[app.main.data.workspace.layout :as layout]
|
[app.main.data.workspace.layout :as layout]
|
||||||
[app.main.data.workspace.state-helpers :as wsh]
|
[app.main.data.workspace.state-helpers :as wsh]
|
||||||
[app.main.data.workspace.texts :as dwt]
|
[app.main.data.workspace.texts :as dwt]
|
||||||
[app.main.repo :as rp]
|
|
||||||
[app.util.color :as uc]
|
[app.util.color :as uc]
|
||||||
[beicon.core :as rx]
|
[beicon.core :as rx]
|
||||||
[potok.core :as ptk]))
|
[potok.core :as ptk]))
|
||||||
|
|
||||||
(def clear-color-for-rename
|
|
||||||
(ptk/reify ::clear-color-for-rename
|
|
||||||
ptk/UpdateEvent
|
|
||||||
(update [_ state]
|
|
||||||
(assoc-in state [:workspace-global :color-for-rename] nil))))
|
|
||||||
|
|
||||||
(declare rename-color-result)
|
|
||||||
|
|
||||||
(defn rename-color
|
|
||||||
[file-id color-id name]
|
|
||||||
(ptk/reify ::rename-color
|
|
||||||
ptk/WatchEvent
|
|
||||||
(watch [_ _ _]
|
|
||||||
(->> (rp/mutation! :rename-color {:id color-id :name name})
|
|
||||||
(rx/map (partial rename-color-result file-id))))))
|
|
||||||
|
|
||||||
(defn rename-color-result
|
|
||||||
[_file-id color]
|
|
||||||
(ptk/reify ::rename-color-result
|
|
||||||
ptk/UpdateEvent
|
|
||||||
(update [_ state]
|
|
||||||
(update-in state [:workspace-file :colors] #(d/replace-by-id % color)))))
|
|
||||||
|
|
||||||
(defn change-palette-selected
|
(defn change-palette-selected
|
||||||
"Change the library used by the general palette tool"
|
"Change the library used by the general palette tool"
|
||||||
[selected]
|
[selected]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue