Code Cleanup

- Removed unused text.cpp split_minimal function.
This commit is contained in:
Paul Beckingham 2014-09-07 16:27:46 -04:00
parent 8a904fc287
commit f17c59b1f6
3 changed files with 1 additions and 31 deletions

View file

@ -80,26 +80,6 @@ void split (
results.push_back (input.substr (start));
}
////////////////////////////////////////////////////////////////////////////////
void split_minimal (
std::vector<std::string>& results,
const std::string& input,
const char delimiter)
{
results.clear ();
std::string::size_type start = 0;
std::string::size_type i;
while ((i = input.find (delimiter, start)) != std::string::npos)
{
if (i != start)
results.push_back (input.substr (start, i - start));
start = i + 1;
}
if (start < input.length ())
results.push_back (input.substr (start));
}
////////////////////////////////////////////////////////////////////////////////
void split (
std::vector<std::string>& results,