summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2025-12-15 14:59:20 -0600
committerGitHub <noreply@github.com>2025-12-15 14:59:20 -0600
commited2fe134aae954836ba2eeb9d2f8beeba64e9e9b (patch)
tree5b8ab8f7b95070ec86764c497dc418acd3ed693d
parent206e1bae661393d351de04c5f315437fa4b105b4 (diff)
parent558cee8dcf8a9ef274f32221a66e59a0f74603ef (diff)
Merge pull request #14219 from Sintendo/stringutils-drop-tabs2spaces
StringUtils: Drop TabsToSpaces
-rw-r--r--Source/Core/Common/StringUtil.cpp12
-rw-r--r--Source/Core/Common/StringUtil.h2
2 files changed, 0 insertions, 14 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;
diff --git a/Source/Core/Common/StringUtil.h b/Source/Core/Common/StringUtil.h
index c635155d5b..2351c3f720 100644
--- a/Source/Core/Common/StringUtil.h
+++ b/Source/Core/Common/StringUtil.h
@@ -180,8 +180,6 @@ std::from_chars_result FromChars(std::string_view sv, std::floating_point auto&
}
} // namespace Common
-std::string TabsToSpaces(int tab_size, std::string str);
-
std::vector<std::string> SplitString(const std::string& str, char delim);
// "C:/Windows/winhelp.exe" to "C:/Windows/", "winhelp", ".exe"