diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2025-12-15 14:59:20 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-15 14:59:20 -0600 |
| commit | ed2fe134aae954836ba2eeb9d2f8beeba64e9e9b (patch) | |
| tree | 5b8ab8f7b95070ec86764c497dc418acd3ed693d /Source/Core/Common/StringUtil.cpp | |
| parent | 206e1bae661393d351de04c5f315437fa4b105b4 (diff) | |
| parent | 558cee8dcf8a9ef274f32221a66e59a0f74603ef (diff) | |
Merge pull request #14219 from Sintendo/stringutils-drop-tabs2spaces
StringUtils: Drop TabsToSpaces
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; |
