summaryrefslogtreecommitdiff
path: root/Source/Core/Common/StringUtil.cpp
diff options
context:
space:
mode:
authorPokechu22 <pokechu022@gmail.com>2023-06-23 18:20:36 -0700
committerGitHub <noreply@github.com>2023-06-23 18:20:36 -0700
commit50c929928cb1b8b125ef425d165316dc1754fd16 (patch)
treeccfb9e9977071bdf81c204d59447d80494382417 /Source/Core/Common/StringUtil.cpp
parentc04536c5d0d9312bccdf5ba2b86c7336dd74babd (diff)
parent445bf8d2c69bf176ed1b7899c814fc9354058b0e (diff)
Merge pull request #11920 from Minty-Meeo/kill-ascii-to-hex
Kill AsciiToHex
Diffstat (limited to 'Source/Core/Common/StringUtil.cpp')
-rw-r--r--Source/Core/Common/StringUtil.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/Source/Core/Common/StringUtil.cpp b/Source/Core/Common/StringUtil.cpp
index ba07db1206..033bc66407 100644
--- a/Source/Core/Common/StringUtil.cpp
+++ b/Source/Core/Common/StringUtil.cpp
@@ -85,25 +85,6 @@ std::string HexDump(const u8* data, size_t size)
return out;
}
-// faster than sscanf
-bool AsciiToHex(const std::string& _szValue, u32& result)
-{
- // Set errno to a good state.
- errno = 0;
-
- char* endptr = nullptr;
- const u32 value = strtoul(_szValue.c_str(), &endptr, 16);
-
- if (!endptr || *endptr)
- return false;
-
- if (errno == ERANGE)
- return false;
-
- result = value;
- return true;
-}
-
bool CharArrayFromFormatV(char* out, int outsize, const char* format, va_list args)
{
int writtenCount;