Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
d7f4ea2c
Commit
d7f4ea2c
authored
8 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
rm unused flatFilename
parent
aae9fd4d
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
Core/Tools/Utils.cpp
+0
-15
0 additions, 15 deletions
Core/Tools/Utils.cpp
Core/Tools/Utils.h
+0
-3
0 additions, 3 deletions
Core/Tools/Utils.h
with
0 additions
and
18 deletions
Core/Tools/Utils.cpp
+
0
−
15
View file @
d7f4ea2c
...
@@ -78,21 +78,6 @@ std::string Utils::String::join(const std::vector<std::string>& joinable, const
...
@@ -78,21 +78,6 @@ std::string Utils::String::join(const std::vector<std::string>& joinable, const
return
result
;
return
result
;
}
}
//! Returns flattened filename, i.e. all directory separator ('/' or '\') are replaced by '_'.
std
::
string
Utils
::
String
::
flatFilename
(
const
std
::
string
&
fname
)
{
std
::
string
result
=
fname
;
for
(
size_t
i
=
0
;
i
<
result
.
size
();
++
i
)
if
(
result
[
i
]
==
'/'
||
result
[
i
]
==
'\\'
)
result
[
i
]
=
'_'
;
return
result
;
}
//! Returns file names that agree with glob pattern.
std
::
vector
<
std
::
string
>
glob
(
const
std
::
string
&
pattern
)
{
}
int
Utils
::
System
::
getThreadHardwareConcurrency
()
int
Utils
::
System
::
getThreadHardwareConcurrency
()
{
{
return
std
::
thread
::
hardware_concurrency
();
return
std
::
thread
::
hardware_concurrency
();
...
...
This diff is collapsed.
Click to expand it.
Core/Tools/Utils.h
+
0
−
3
View file @
d7f4ea2c
...
@@ -46,9 +46,6 @@ public:
...
@@ -46,9 +46,6 @@ public:
//! Returns string obtain by joining vector elements
//! Returns string obtain by joining vector elements
static
std
::
string
join
(
const
std
::
vector
<
std
::
string
>&
joinable
,
const
std
::
string
&
joint
);
static
std
::
string
join
(
const
std
::
vector
<
std
::
string
>&
joinable
,
const
std
::
string
&
joint
);
//! Returns flattened filename, i.e. all directory separator ('/' or '\') are replaced by '_'.
static
std
::
string
flatFilename
(
const
std
::
string
&
filename
);
};
};
...
...
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