Skip to content
Snippets Groups Projects
Commit 8dfd43c4 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[BL] Remove unused StringTools padLeft().

parent 951a8cf9
No related branches found
No related tags found
No related merge requests found
...@@ -82,13 +82,6 @@ void simplify(std::string &str) ...@@ -82,13 +82,6 @@ void simplify(std::string &str)
); );
} }
std::string padLeft(std::string const& str, int maxlen, char ch)
{
std::stringstream ss(str);
ss << std::right << std::setw(maxlen) << std::setfill(ch) << str;
return ss.str();
}
std::string const& tostring(std::string const& value) std::string const& tostring(std::string const& value)
{ {
return value; return value;
......
...@@ -72,12 +72,6 @@ void trim(std::string &str, char ch=' '); ...@@ -72,12 +72,6 @@ void trim(std::string &str, char ch=' ');
*/ */
void simplify(std::string &str); void simplify(std::string &str);
/**
* Returns the string which is right aligned with padding on the left.
*/
std::string padLeft(std::string const& str, int maxlen, char ch=' ');
//! Method for handling conversion to string uniformly across all types and std::string; see std::string overload below. //! Method for handling conversion to string uniformly across all types and std::string; see std::string overload below.
template<typename T> std::string tostring(T const& value) template<typename T> std::string tostring(T const& value)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment