diff options
| author | Dentomologist <dentomologist@gmail.com> | 2021-07-21 12:39:00 -0700 |
|---|---|---|
| committer | Dentomologist <dentomologist@gmail.com> | 2021-07-21 12:39:00 -0700 |
| commit | f5e5e8553cb779b75918412d286b07597b4a5fb6 (patch) | |
| tree | 92f625c066b6d14232987b500e950ab7c6096c03 /Source/Core | |
| parent | d1beb9ef7018c71a2336c62fa31bfe554083a3e7 (diff) | |
StringUtil: Remove unused function BuildCompleteFilename
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Common/StringUtil.cpp | 13 | ||||
| -rw-r--r-- | Source/Core/Common/StringUtil.h | 3 |
2 files changed, 0 insertions, 16 deletions
diff --git a/Source/Core/Common/StringUtil.cpp b/Source/Core/Common/StringUtil.cpp index dde33605c9..0419fcc288 100644 --- a/Source/Core/Common/StringUtil.cpp +++ b/Source/Core/Common/StringUtil.cpp @@ -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); diff --git a/Source/Core/Common/StringUtil.h b/Source/Core/Common/StringUtil.h index e3f469a2c6..d91bc41df3 100644 --- a/Source/Core/Common/StringUtil.h +++ b/Source/Core/Common/StringUtil.h @@ -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); |
