StringUtils: Drop TabsToSpaces

This function is unused.
This commit is contained in:
Sintendo 2025-12-15 13:41:54 +01:00
parent 04f71e5e6d
commit 558cee8dcf
2 changed files with 0 additions and 14 deletions

View File

@ -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;

View File

@ -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"