Remove unused function isHex.

This commit is contained in:
Arthur Britto
2012-03-18 19:11:43 -07:00
parent af44d6d1f4
commit db73b12c9f
2 changed files with 4 additions and 11 deletions

View File

@@ -28,14 +28,6 @@ std::vector<unsigned char> 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);

View File

@@ -177,8 +177,8 @@ protected:
void SetData(int nVersionIn, std::vector<unsigned char> 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<unsigned char> 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