From 9832cb890d2b61e5fbbe8405bf8514699973af50 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Tue, 20 Apr 2021 13:02:08 +0100 Subject: [PATCH] cleanup --- src/svg/svg_parser.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/svg/svg_parser.cpp b/src/svg/svg_parser.cpp index ab87e90ae..394c7340c 100644 --- a/src/svg/svg_parser.cpp +++ b/src/svg/svg_parser.cpp @@ -376,7 +376,6 @@ void process_css(svg_parser & parser, rapidxml::xml_node const* node) auto itr = css.find(element_name); if (itr != css.end()) { - //std::cerr << "-> element key:" << element_name << std::endl; for (auto const& def : std::get<1>(*itr)) { style[std::get<0>(def)] = std::get<1>(def); @@ -401,8 +400,6 @@ void process_css(svg_parser & parser, rapidxml::xml_node const* node) auto range = css.equal_range(solitary_class_key); for (auto itr = range.first; itr != range.second; ++itr) { - //std::cerr << "<" << element_name << ">"; - //std::cerr << "--> solitary class key:" << solitary_class_key << std::endl; for (auto const& def : std::get<1>(*itr)) { style[std::get<0>(def)] = std::get<1>(def); @@ -412,8 +409,6 @@ void process_css(svg_parser & parser, rapidxml::xml_node const* node) range = css.equal_range(class_key); for (auto itr = range.first; itr != range.second; ++itr) { - //std::cerr << "<" << element_name << ">"; - //std::cerr << "---> class key:" << class_key << std::endl; for (auto const& def : std::get<1>(*itr)) { style[std::get<0>(def)] = std::get<1>(def); @@ -421,10 +416,6 @@ void process_css(svg_parser & parser, rapidxml::xml_node const* node) } } } - //else - //{ - // std::cerr << "Failed to parse styles..." << std::endl; - //} } } auto const* id_attr = node->first_attribute("id"); @@ -437,8 +428,6 @@ void process_css(svg_parser & parser, rapidxml::xml_node const* node) itr = css.find(id_key); if (itr != css.end()) { - //std::cerr << "<" << element_name << ">"; - //std::cerr << "----> ID key:" << id_key << std::endl; for (auto const& def : std::get<1>(*itr)) { style[std::get<0>(def)] = std::get<1>(def); @@ -454,7 +443,6 @@ void process_css(svg_parser & parser, rapidxml::xml_node const* node) { auto const& r = std::get<1>(def); std::string val{r.begin(), r.end()}; - //std::cerr << "PARSE ATTR:" << std::get<0>(def) << ":" << val << std::endl; parse_attr(parser, std::get<0>(def).c_str(), val.c_str()); } }