cleanup
This commit is contained in:
parent
3361db7b5d
commit
9832cb890d
1 changed files with 0 additions and 12 deletions
|
@ -376,7 +376,6 @@ void process_css(svg_parser & parser, rapidxml::xml_node<char> 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<char> 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<char> 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<char> 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<char> 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<char> 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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue