From 2380dcb22205cde26355f47de108f21a573d3d8d Mon Sep 17 00:00:00 2001 From: jaseg Date: Wed, 29 Sep 2021 17:43:39 +0200 Subject: svg-flatten: Remove unnecessary debug prints --- svg-flatten/src/main.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'svg-flatten/src') diff --git a/svg-flatten/src/main.cpp b/svg-flatten/src/main.cpp index 2ebcfe9..e259881 100644 --- a/svg-flatten/src/main.cpp +++ b/svg-flatten/src/main.cpp @@ -37,7 +37,7 @@ string temp_file_path(const char *suffix) { } out << suffix; - cerr << "out \"" << out.str() << "\"" << endl; + //cerr << "out \"" << out.str() << "\"" << endl; #ifndef WASI filesystem::path base = filesystem::temp_directory_path(); return (base / out.str()).native(); @@ -217,7 +217,7 @@ int main(int argc, char **argv) { double scale = args["scale"].as(1.0); if (scale != 1.0) { - cerr << "loading @scale=" << scale << endl; + cerr << "Info: Loading scaled input @scale=" << scale << endl; } sink = new SimpleGerberOutput( @@ -293,7 +293,7 @@ int main(int argc, char **argv) { bool is_svg = args["force_svg"] || (ending == ".svg" && !args["force_png"]); if (!is_svg) { - cerr << "writing bitmap into svg" << endl; + //cerr << "writing bitmap into svg" << endl; if (!args["size"]) { cerr << "Error: --size must be given when using bitmap input." << endl; return EXIT_FAILURE; @@ -349,7 +349,7 @@ int main(int argc, char **argv) { svg.close(); } else { /* svg file */ - cerr << "copying svg input into temp svg" << endl; + //cerr << "copying svg input into temp svg" << endl; /* c++ has the best hacks */ std::ostringstream sstr; @@ -362,11 +362,11 @@ int main(int argc, char **argv) { } if (args["skip_usvg"]) { - cerr << "skipping usvg" << endl; + cerr << "Info: Skipping usvg" << endl; frob = barf; } else { - cerr << "calling usvg on " << barf << " and " << frob << endl; + //cerr << "calling usvg on " << barf << " and " << frob << endl; int dpi = 96; if (args["usvg_dpi"]) { dpi = args["usvg_dpi"].as(); @@ -396,7 +396,7 @@ int main(int argc, char **argv) { }; SVGDocument doc; - cerr << "Loading temporary file " << frob << endl; + //cerr << "Loading temporary file " << frob << endl; ifstream load_f(frob); if (!doc.load(load_f)) { cerr << "Error loading input file \"" << in_f_name << "\", exiting." << endl; -- cgit