mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Remove unused function isHex.
This commit is contained in:
@@ -28,14 +28,6 @@ std::vector<unsigned char> AccountState::getRaw() const
|
|||||||
return s.getData();
|
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)
|
void AccountState::addJson(Json::Value& val)
|
||||||
{
|
{
|
||||||
Json::Value as(Json::objectValue);
|
Json::Value as(Json::objectValue);
|
||||||
|
|||||||
@@ -177,8 +177,8 @@ protected:
|
|||||||
|
|
||||||
void SetData(int nVersionIn, std::vector<unsigned char> vchDataIn)
|
void SetData(int nVersionIn, std::vector<unsigned char> vchDataIn)
|
||||||
{
|
{
|
||||||
nVersion = nVersionIn;
|
nVersion = nVersionIn;
|
||||||
vchData = vchDataIn;
|
vchData = vchDataIn;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetData(int nVersionIn, const void* pdata, size_t nSize)
|
void SetData(int nVersionIn, const void* pdata, size_t nSize)
|
||||||
@@ -222,7 +222,7 @@ public:
|
|||||||
{
|
{
|
||||||
std::vector<unsigned char> vch(1, nVersion);
|
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);
|
return EncodeBase58Check(vch);
|
||||||
}
|
}
|
||||||
@@ -244,3 +244,4 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
// vim:ts=4
|
||||||
|
|||||||
Reference in New Issue
Block a user