Delete a useless function

This commit is contained in:
2014-04-16 17:49:59 -04:00
parent 199f84e0db
commit d7e372b7a9
4 changed files with 4 additions and 27 deletions

View File

@@ -285,6 +285,7 @@ template<> pair<string,cTextMsg*> cDialog::parse(Element& who /*text*/){
// TODO: De-magic the | character
if(type == TiXmlNode::ELEMENT && val == "br") content += '|'; // because vertical bar is replaced by a newline when drawing strings
else if(type == TiXmlNode::TEXT)
// TODO: One small problem with this: newlines should be replaced by a space instead of being removed altogether. Or something like that.
copy_if(val.begin(), val.end(), std::inserter(content, content.end()), isAllowableCharacter);
else{
val = '<' + val + '>';
@@ -483,6 +484,7 @@ template<> pair<string,cButton*> cDialog::parse(Element& who /*button*/){
if(content.length() > 0) throw xBadVal("button","<content>",content + val,node->Row(),node->Column(),fname);
// p.second->labelWithKey = true;
}else if(type == TiXmlNode::TEXT)
// TODO: One small problem with this: newlines should be replaced by a space instead of being removed altogether. Or something like that.
copy_if(val.begin(), val.end(), std::inserter(content, content.end()), isAllowableCharacter);
else{
val = '<' + val + '>';
@@ -638,6 +640,7 @@ template<> pair<string,cLed*> cDialog::parse(Element& who /*LED*/){
int type = node->Type();
node->GetValue(&val);
if(type == TiXmlNode::TEXT)
// TODO: One small problem with this: newlines should be replaced by a space instead of being removed altogether. Or something like that.
copy_if(val.begin(), val.end(), std::inserter(content, content.end()), isAllowableCharacter);
else{
val = '<' + val + '>';