From db73b12c9fb05c561ca7d66a9f5c36cdb9e812db Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Sun, 18 Mar 2012 19:11:43 -0700 Subject: [PATCH] Remove unused function isHex. --- src/AccountState.cpp | 8 -------- src/base58.h | 7 ++++--- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/AccountState.cpp b/src/AccountState.cpp index 8410b532e..e4a6ddbff 100644 --- a/src/AccountState.cpp +++ b/src/AccountState.cpp @@ -28,14 +28,6 @@ std::vector AccountState::getRaw() const return s.getData(); } -static bool isHex(char j) -{ - if((j>='0') && (j<='9')) return true; - if((j>='A') && (j<='F')) return true; - if((j>='a') && (j<='f')) return true; - return false; -} - void AccountState::addJson(Json::Value& val) { Json::Value as(Json::objectValue); diff --git a/src/base58.h b/src/base58.h index 46913c990..f2603e6f6 100644 --- a/src/base58.h +++ b/src/base58.h @@ -177,8 +177,8 @@ protected: void SetData(int nVersionIn, std::vector vchDataIn) { - nVersion = nVersionIn; - vchData = vchDataIn; + nVersion = nVersionIn; + vchData = vchDataIn; } void SetData(int nVersionIn, const void* pdata, size_t nSize) @@ -222,7 +222,7 @@ public: { std::vector vch(1, nVersion); - vch.insert(vch.end(), vchData.begin(), vchData.end()); + vch.insert(vch.end(), vchData.begin(), vchData.end()); return EncodeBase58Check(vch); } @@ -244,3 +244,4 @@ public: }; #endif +// vim:ts=4