0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-25 07:58:49 -05:00

🔥 Remove commented code.

This commit is contained in:
Andrey Antukh 2020-12-21 09:12:23 +01:00 committed by Alonso Torres
parent c0bc7553a9
commit 2c0a2ce750

View file

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