aboutsummaryrefslogtreecommitdiff
path: root/src/common/string_util.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-19 08:46:40 -0700
committerGitHub <noreply@github.com>2018-07-19 08:46:40 -0700
commit232392968ffdca802bd027ab65ed1ad4dd86848e (patch)
treec3f917d0a8e3e9e6b389d7767a32880114c4f473 /src/common/string_util.cpp
parent280f1100b6a61253c3eca3b8f3fcfebd93f9d87b (diff)
parent7ad7ee1411f3846940aced9898cfcea5e37de419 (diff)
Merge pull request #704 from lioncash/string
string_util: Remove AsciiToHex()
Diffstat (limited to 'src/common/string_util.cpp')
-rw-r--r--src/common/string_util.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp
index 0027888c7e..f3ad3d68a4 100644
--- a/src/common/string_util.cpp
+++ b/src/common/string_util.cpp
@@ -34,18 +34,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;
-}
-
// For Debugging. Read out an u8 array.
std::string ArrayToString(const u8* data, size_t size, int line_len, bool spaces) {
std::ostringstream oss;