diff options
| author | Sintendo <3380580+Sintendo@users.noreply.github.com> | 2025-12-15 13:41:54 +0100 |
|---|---|---|
| committer | Sintendo <3380580+Sintendo@users.noreply.github.com> | 2025-12-15 13:41:54 +0100 |
| commit | 558cee8dcf8a9ef274f32221a66e59a0f74603ef (patch) | |
| tree | dda15333962d3f1cf661fbcaf51daa93a84c6704 /Source/Core/Common/StringUtil.cpp | |
| parent | 04f71e5e6d6b7fd3736b8b1f60f7970b34ec1e3f (diff) | |
StringUtils: Drop TabsToSpaces
This function is unused.
Diffstat (limited to 'Source/Core/Common/StringUtil.cpp')
| -rw-r--r-- | Source/Core/Common/StringUtil.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/Source/Core/Common/StringUtil.cpp b/Source/Core/Common/StringUtil.cpp index bea9ac5d9d..79dc2a4269 100644 --- a/Source/Core/Common/StringUtil.cpp +++ b/Source/Core/Common/StringUtil.cpp @@ -16,7 +16,6 @@ #include <locale> #include <sstream> #include <string> -#include <type_traits> #include <vector> #include <fmt/format.h> @@ -365,17 +364,6 @@ std::vector<std::string> SplitString(const std::string& str, const char delim) return output; } -std::string TabsToSpaces(int tab_size, std::string str) -{ - const std::string spaces(tab_size, ' '); - - size_t i = 0; - while (str.npos != (i = str.find('\t'))) - str.replace(i, 1, spaces); - - return str; -} - std::string ReplaceAll(std::string result, std::string_view src, std::string_view dest) { size_t pos = 0; |
