aboutsummaryrefslogtreecommitdiff
path: root/src/common/hex_util.cpp
diff options
context:
space:
mode:
authorZach Hilman <DarkLordZach@users.noreply.github.com>2019-06-15 16:47:13 -0400
committerGitHub <noreply@github.com>2019-06-15 16:47:13 -0400
commitaca05af7982da3c08f3ea5a08004cb20b92d4d2f (patch)
tree6407b0465b93a7cfc0a5733e0d8dd3bb26742a15 /src/common/hex_util.cpp
parent6507034f95093470523af72aef5a24556b760133 (diff)
parent37ff16bbb04881da44bf8f2ef727c526f63004e5 (diff)
Merge pull request #2581 from lioncash/hex
common/hex_util: Combine HexVectorToString() and HexArrayToString()
Diffstat (limited to 'src/common/hex_util.cpp')
-rw-r--r--src/common/hex_util.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/common/hex_util.cpp b/src/common/hex_util.cpp
index 5b63f9e819..c2f6cf0f69 100644
--- a/src/common/hex_util.cpp
+++ b/src/common/hex_util.cpp
@@ -30,13 +30,6 @@ std::vector<u8> HexStringToVector(std::string_view str, bool little_endian) {
return out;
}
-std::string HexVectorToString(const std::vector<u8>& vector, bool upper) {
- std::string out;
- for (u8 c : vector)
- out += fmt::format(upper ? "{:02X}" : "{:02x}", c);
- return out;
-}
-
std::array<u8, 16> operator""_array16(const char* str, std::size_t len) {
if (len != 32) {
LOG_ERROR(Common,