From 64828c918d20815c11a42d0c08872949ae851987 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Sun, 10 Jan 2021 19:19:26 +0100 Subject: [PATCH] :fire: Remove commented code. --- backend/src/app/svgparse.clj | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/backend/src/app/svgparse.clj b/backend/src/app/svgparse.clj index e70e41f108..0a88f9a19e 100644 --- a/backend/src/app/svgparse.clj +++ b/backend/src/app/svgparse.clj @@ -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 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;