From 445bf8d2c69bf176ed1b7899c814fc9354058b0e Mon Sep 17 00:00:00 2001 From: get <45425365+Minty-Meeo@users.noreply.github.com> Date: Sat, 10 Jun 2023 07:56:40 -0500 Subject: Kill AsciiToHex Now superseded by Common::FromChars --- Source/Core/Common/StringUtil.cpp | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'Source/Core/Common/StringUtil.cpp') 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; -- cgit v1.2.3