From 8068f506c55bf4d4e939b6245d51c109ea60cca1 Mon Sep 17 00:00:00 2001
From: Lioncash <mathew1800@gmail.com>
Date: Wed, 18 Jul 2018 23:57:12 -0400
Subject: [PATCH] string_util: Remove AsciiToHex()

Easy TODO
---
 src/common/string_util.cpp | 12 ------------
 src/common/string_util.h   |  3 ---
 2 files changed, 15 deletions(-)

diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp
index 3a68a7391..80f998549 100644
--- a/src/common/string_util.cpp
+++ b/src/common/string_util.cpp
@@ -36,18 +36,6 @@ std::string ToUpper(std::string str) {
     return str;
 }
 
-// faster than sscanf
-bool AsciiToHex(const char* _szValue, u32& result) {
-    char* endptr = nullptr;
-    const u32 value = strtoul(_szValue, &endptr, 16);
-
-    if (!endptr || *endptr)
-        return false;
-
-    result = value;
-    return true;
-}
-
 bool CharArrayFromFormatV(char* out, int outsize, const char* format, va_list args) {
     int writtenCount;
 
diff --git a/src/common/string_util.h b/src/common/string_util.h
index ec0c31a24..6da956b65 100644
--- a/src/common/string_util.h
+++ b/src/common/string_util.h
@@ -69,9 +69,6 @@ static bool TryParse(const std::string& str, N* const output) {
         return false;
 }
 
-// TODO: kill this
-bool AsciiToHex(const char* _szValue, u32& result);
-
 std::string TabsToSpaces(int tab_size, const std::string& in);
 
 void SplitString(const std::string& str, char delim, std::vector<std::string>& output);