0
Fork 0
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:
Andrey Antukh 2016-09-30 15:41:09 +02:00
parent 707f2b0d87
commit 96b1baf6cf
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -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)))