diff options
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/string_util.cpp | 12 | ||||
| -rw-r--r-- | src/common/string_util.h | 3 |
2 files changed, 0 insertions, 15 deletions
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp index 0027888c7..f3ad3d68a 100644 --- a/src/common/string_util.cpp +++ b/src/common/string_util.cpp | |||
| @@ -34,18 +34,6 @@ std::string ToUpper(std::string str) { | |||
| 34 | return str; | 34 | return str; |
| 35 | } | 35 | } |
| 36 | 36 | ||
| 37 | // faster than sscanf | ||
| 38 | bool AsciiToHex(const char* _szValue, u32& result) { | ||
| 39 | char* endptr = nullptr; | ||
| 40 | const u32 value = strtoul(_szValue, &endptr, 16); | ||
| 41 | |||
| 42 | if (!endptr || *endptr) | ||
| 43 | return false; | ||
| 44 | |||
| 45 | result = value; | ||
| 46 | return true; | ||
| 47 | } | ||
| 48 | |||
| 49 | // For Debugging. Read out an u8 array. | 37 | // For Debugging. Read out an u8 array. |
| 50 | std::string ArrayToString(const u8* data, size_t size, int line_len, bool spaces) { | 38 | std::string ArrayToString(const u8* data, size_t size, int line_len, bool spaces) { |
| 51 | std::ostringstream oss; | 39 | std::ostringstream oss; |
diff --git a/src/common/string_util.h b/src/common/string_util.h index 1f5a383cb..daa071f83 100644 --- a/src/common/string_util.h +++ b/src/common/string_util.h | |||
| @@ -57,9 +57,6 @@ static bool TryParse(const std::string& str, N* const output) { | |||
| 57 | return false; | 57 | return false; |
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | // TODO: kill this | ||
| 61 | bool AsciiToHex(const char* _szValue, u32& result); | ||
| 62 | |||
| 63 | std::string TabsToSpaces(int tab_size, const std::string& in); | 60 | std::string TabsToSpaces(int tab_size, const std::string& in); |
| 64 | 61 | ||
| 65 | void SplitString(const std::string& str, char delim, std::vector<std::string>& output); | 62 | void SplitString(const std::string& str, char delim, std::vector<std::string>& output); |