Skip to content

Commit

Permalink
removed dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed Apr 25, 2024
1 parent daf992e commit 5153091
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/folia_impl.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,6 @@ namespace folia {
cerr << "DEBUG: BEGIN check_text_consistency_while_parsing("
<< trim_spaces << ")" << endl;
}
// map<string,bool> text_found;
// check the text for every possible text class
for ( const auto& st : doc()->textclasses() ){
UnicodeString s1, s2;
Expand All @@ -1732,7 +1731,6 @@ namespace folia {
catch (...){
}
if ( !s1.isEmpty() ){
// text_found[st] = true;
if ( debug ){
cerr << "S1: " << s1 << endl;
}
Expand Down Expand Up @@ -1795,11 +1793,6 @@ namespace folia {
}
}
}
// else {
// auto is_text_node = []( auto elt ){ return elt->element_id() == XmlText_t; };
// text_found[st] = std::any_of( _data.begin(), _data.end(),
// is_text_node );
// }
}
if ( element_id() == TextContent_t ){
// we have to check for at least one XmlText or TEXTCONTAINER child
Expand Down

0 comments on commit 5153091

Please sign in to comment.