0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00

🔥 Remove commented code.

This commit is contained in:
Andrey Antukh 2021-01-10 19:19:26 +01:00 committed by Alonso Torres
parent 7aa7257d29
commit 64828c918d

View file

@ -25,25 +25,6 @@
java.util.function.Consumer
org.apache.commons.io.IOUtils))
;; (defn- clean-svg
;; [^InputStream input]
;; (let [result (shell/sh
;; ;; "svgcleaner" "--allow-bigger-file" "-c" "-"
;; "svgo"
;; "--enable=prefixIds,removeDimensions,removeXMLNS,removeScriptElement"
;; "--disable=removeViewBox,moveElemsAttrsToGroup"
;; "-i" "-" "-o" "-"
;; :in input :out-enc :bytes)
;; err-str (:err result)]
;; (when (or (not= 0 (:exit result))
;; ;; svgcleaner returns 0 with some errors, we need to check
;; (and (not= err-str "") (not (nil? err-str)) (str/starts-with? err-str "Error")))
;; (ex/raise :type :validation
;; :code :unable-to-optimize
;; :hint (:err result)))
;; (io/input-stream (:out result))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; SVG Clean
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;