mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 08:50:57 -05:00
🔥 Remove unused code.
This commit is contained in:
parent
adfa117dc0
commit
525b3f640f
3 changed files with 2 additions and 3 deletions
|
@ -55,6 +55,5 @@
|
||||||
(let [w (t/writer :json {:handlers +write-handlers+})]
|
(let [w (t/writer :json {:handlers +write-handlers+})]
|
||||||
(t/write w data))
|
(t/write w data))
|
||||||
(catch :default e
|
(catch :default e
|
||||||
(println "data:" data)
|
|
||||||
(throw e))))
|
(throw e))))
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
(try
|
(try
|
||||||
(let [result (impl/handler payload)]
|
(let [result (impl/handler payload)]
|
||||||
(cond
|
(cond
|
||||||
(p/thenable? result)
|
(p/promise? result)
|
||||||
(p/handle result
|
(p/handle result
|
||||||
(fn [msg]
|
(fn [msg]
|
||||||
(.postMessage js/self (t/encode
|
(.postMessage js/self (t/encode
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
(ns uxbox.worker.thumbnails
|
(ns uxbox.worker.thumbnails
|
||||||
(:require
|
(:require
|
||||||
[rumext.alpha :as mf]
|
[rumext.alpha :as mf]
|
||||||
|
[promesa.core :as p]
|
||||||
[cljs.spec.alpha :as s]
|
[cljs.spec.alpha :as s]
|
||||||
[uxbox.common.exceptions :as ex]
|
[uxbox.common.exceptions :as ex]
|
||||||
[uxbox.common.spec :as us]
|
[uxbox.common.spec :as us]
|
||||||
|
@ -25,4 +26,3 @@
|
||||||
:height "150"})]
|
:height "150"})]
|
||||||
{:svg (rds/renderToStaticMarkup elem)
|
{:svg (rds/renderToStaticMarkup elem)
|
||||||
:fonts @fonts/loaded}))
|
:fonts @fonts/loaded}))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue