diff options
| author | Pokechu22 <pokechu022@gmail.com> | 2023-06-23 18:20:36 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-23 18:20:36 -0700 |
| commit | 50c929928cb1b8b125ef425d165316dc1754fd16 (patch) | |
| tree | ccfb9e9977071bdf81c204d59447d80494382417 /Source/Core/Common/StringUtil.cpp | |
| parent | c04536c5d0d9312bccdf5ba2b86c7336dd74babd (diff) | |
| parent | 445bf8d2c69bf176ed1b7899c814fc9354058b0e (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.cpp | 19 |
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; |
