mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
Remove some obsolete comments and commented out code
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user