Skip to content
Snippets Groups Projects
Commit d7f4ea2c authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rm unused flatFilename

parent aae9fd4d
No related branches found
No related tags found
No related merge requests found
...@@ -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();
......
...@@ -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);
}; };
......
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