mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 07:29:08 -05:00
Remove unused code.
This commit is contained in:
parent
707f2b0d87
commit
96b1baf6cf
1 changed files with 0 additions and 16 deletions
|
@ -1,16 +0,0 @@
|
||||||
(ns uxbox.main.state.clipboard)
|
|
||||||
|
|
||||||
(defonce ^:private +max-items+ 5)
|
|
||||||
|
|
||||||
(defn conj-item
|
|
||||||
[state item]
|
|
||||||
(if-let [project (get-in state [:workspace :project])]
|
|
||||||
(let [queue (get-in state [:clipboard project] #queue [])
|
|
||||||
queue (conj queue item)]
|
|
||||||
(assoc-in state [:clipboard project]
|
|
||||||
(if (> (count queue) +max-items+)
|
|
||||||
(pop queue)
|
|
||||||
queue)))
|
|
||||||
(do
|
|
||||||
(js/console.warn "no active project for manage clipboard.")
|
|
||||||
state)))
|
|
Loading…
Add table
Reference in a new issue