From 2c0a2ce750f5eecbc88b708d8e97bb162b79f8f5 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 21 Dec 2020 09:12:23 +0100 Subject: [PATCH] :fire: Remove commented code. --- frontend/src/app/util/webapi.cljs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/frontend/src/app/util/webapi.cljs b/frontend/src/app/util/webapi.cljs index a08e9889f..f3ce1da2f 100644 --- a/frontend/src/app/util/webapi.cljs +++ b/frontend/src/app/util/webapi.cljs @@ -58,21 +58,6 @@ (assert (blob? b) "invalid arguments") (js/URL.createObjectURL b)) - -;; (defn get-image-size -;; [file] -;; (letfn [(on-load [sink img] -;; (let [size [(.-width img) (.-height img)]] -;; (sink (rx/end size)))) -;; (on-subscribe [sink] -;; (let [img (js/Image.) -;; uri (blob/create-uri file)] -;; (set! (.-onload img) (partial on-load sink img)) -;; (set! (.-src img) uri) -;; #(blob/revoke-uri uri)))] -;; (rx/create on-subscribe))) - - (defn write-to-clipboard [data] (assert (string? data) "`data` should be string")