🔥 Remove debug prints from shape validation

Drop the println in the :validate-shapes change and the prn calls in
the main instance check of the file validation.

AI-assisted-by: claude-opus-5-5
This commit is contained in:
Eva Marco 2026-10-02 12:27:43 +02:00 committed by Andrés Moya
parent 31493b1525
commit 911dea8a4f
2 changed files with 0 additions and 7 deletions

View File

@ -1133,11 +1133,6 @@
(defmethod process-change :validate-shapes
[data {:keys [page-id shape-ids context]} libraries]
(when libraries
(println "Validating shapes: \n"
" file-id:" (str (:id data)) "\n"
" page-id:" (str page-id) "\n"
" shape-ids:" (str shape-ids) "\n"
" context:" context)
(let [file {:id (:id data) :data data}
errors (reduce (fn [acc shape-id]
(if-let [page (ctpl/get-page data page-id)]

View File

@ -279,8 +279,6 @@
"Shape expected to be main instance"
shape file page))
(when-not (= (:component-file shape) (:id file))
(prn "shape" (:id shape) (:name shape) (:component-file shape))
(prn "file" (:id file) (:name file))
(report-error :component-main-external
"Main instance should refer to a component in the same file"
shape file page))