Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #9933 from Dentomologist/remove_stringutil_buildco…
…mpletefilename

StringUtil: Remove unused function BuildCompleteFilename
  • Loading branch information
JosJuice committed Jul 22, 2021
2 parents 674e2aa + f5e5e85 commit 484279f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
13 changes: 0 additions & 13 deletions Source/Core/Common/StringUtil.cpp
Expand Up @@ -342,19 +342,6 @@ std::string PathToFileName(std::string_view path)
return file_name + extension;
}

void BuildCompleteFilename(std::string& complete_filename, std::string_view path,
std::string_view filename)
{
complete_filename = path;

// check for seperator
if (DIR_SEP_CHR != *complete_filename.rbegin())
complete_filename += DIR_SEP_CHR;

// add the filename
complete_filename += filename;
}

std::vector<std::string> SplitString(const std::string& str, const char delim)
{
std::istringstream iss(str);
Expand Down
3 changes: 0 additions & 3 deletions Source/Core/Common/StringUtil.h
Expand Up @@ -162,9 +162,6 @@ bool SplitPath(std::string_view full_path, std::string* path, std::string* filen

std::string PathToFileName(std::string_view path);

void BuildCompleteFilename(std::string& complete_filename, std::string_view path,
std::string_view filename);

bool StringBeginsWith(std::string_view str, std::string_view begin);
bool StringEndsWith(std::string_view str, std::string_view end);
void StringPopBackIf(std::string* s, char c);
Expand Down

0 comments on commit 484279f

Please sign in to comment.