mirror of
https://github.com/penpot/penpot.git
synced 2026-05-07 09:08:33 +00:00
🔥 Remove commented code.
This commit is contained in:
parent
7aa7257d29
commit
64828c918d
@ -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
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user