mirror of
https://github.com/penpot/penpot.git
synced 2025-05-22 10:26:10 +02:00
🔥 Remove commented code.
This commit is contained in:
parent
7aa7257d29
commit
64828c918d
1 changed files with 0 additions and 19 deletions
|
@ -25,25 +25,6 @@
|
||||||
java.util.function.Consumer
|
java.util.function.Consumer
|
||||||
org.apache.commons.io.IOUtils))
|
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
|
;; SVG Clean
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue