Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dmitri Naumov
ogs
Commits
8dfd43c4
Commit
8dfd43c4
authored
5 years ago
by
Dmitri Naumov
Browse files
Options
Downloads
Patches
Plain Diff
[BL] Remove unused StringTools padLeft().
parent
951a8cf9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
BaseLib/StringTools.cpp
+0
-7
0 additions, 7 deletions
BaseLib/StringTools.cpp
BaseLib/StringTools.h
+0
-6
0 additions, 6 deletions
BaseLib/StringTools.h
with
0 additions
and
13 deletions
BaseLib/StringTools.cpp
+
0
−
7
View file @
8dfd43c4
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
BaseLib/StringTools.h
+
0
−
6
View file @
8dfd43c4
...
@@ -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
)
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment