Remove some obsolete comments and commented out code

This commit is contained in:
Geert Janssens
2017-02-20 18:04:46 +01:00
parent 4687eb649b
commit 6657e6660b
2 changed files with 3 additions and 20 deletions
@@ -59,14 +59,8 @@ int GncCsvTokenizer::tokenize()
Tokenizer tok(line, sep);
vec.assign(tok.begin(),tok.end());
line.clear(); // clear here, next check could fail
// example checking
// for correctly parsed 3 fields per record
// if (vec.size() < 3) continue;
m_tokenized_contents.push_back(vec);
line.clear();
}
return 0;
+2 -13
View File
@@ -172,20 +172,9 @@ int GncFwTokenizer::tokenize()
Tokenizer tok(line, sep);
vec.clear();
for (auto token : tok)
vec.push_back (boost::trim_copy(token));
//vec.assign(tok.begin(),tok.end());
// Trim all leading and trailing whitespace
//for (auto token : vec)
// boost::trim(token);
line.clear(); // clear here, next check could fail
// example checking
// for correctly parsed 3 fields per record
// if (vec.size() < 3) continue;
vec.push_back (boost::trim_copy(token)); // strips newlines as well as whitespace
m_tokenized_contents.push_back(vec);
line.clear(); // clear here, next check could fail
}
return 0;