From 525b3f640f81bd2e5ecdf0e967a864d059e62401 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 5 May 2020 22:35:30 +0200 Subject: [PATCH] :fire: Remove unused code. --- frontend/src/uxbox/util/transit.cljs | 1 - frontend/src/uxbox/worker.cljs | 2 +- frontend/src/uxbox/worker/thumbnails.cljs | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/uxbox/util/transit.cljs b/frontend/src/uxbox/util/transit.cljs index d746b4e06..5b364eb28 100644 --- a/frontend/src/uxbox/util/transit.cljs +++ b/frontend/src/uxbox/util/transit.cljs @@ -55,6 +55,5 @@ (let [w (t/writer :json {:handlers +write-handlers+})] (t/write w data)) (catch :default e - (println "data:" data) (throw e)))) diff --git a/frontend/src/uxbox/worker.cljs b/frontend/src/uxbox/worker.cljs index 3327f7d0a..2d5ff494f 100644 --- a/frontend/src/uxbox/worker.cljs +++ b/frontend/src/uxbox/worker.cljs @@ -36,7 +36,7 @@ (try (let [result (impl/handler payload)] (cond - (p/thenable? result) + (p/promise? result) (p/handle result (fn [msg] (.postMessage js/self (t/encode diff --git a/frontend/src/uxbox/worker/thumbnails.cljs b/frontend/src/uxbox/worker/thumbnails.cljs index 3470b2a67..7599afa15 100644 --- a/frontend/src/uxbox/worker/thumbnails.cljs +++ b/frontend/src/uxbox/worker/thumbnails.cljs @@ -10,6 +10,7 @@ (ns uxbox.worker.thumbnails (:require [rumext.alpha :as mf] + [promesa.core :as p] [cljs.spec.alpha :as s] [uxbox.common.exceptions :as ex] [uxbox.common.spec :as us] @@ -25,4 +26,3 @@ :height "150"})] {:svg (rds/renderToStaticMarkup elem) :fonts @fonts/loaded})) -