remove unused method GetObjectSubtype (#1914)

I believe this was stubbed to eventually read the string in the 1st
field of the inner array in the gobject JSON. Currently only Sentinel
uses this and I would like to move to just a single JSON object, so
don't think this is necessary any longer.
This commit is contained in:
Nathan Marley 2018-02-12 04:45:38 -08:00 committed by UdjinM6
parent 6825b347f2
commit 8ea1bd0f55
2 changed files with 0 additions and 11 deletions

View File

@ -268,15 +268,6 @@ bool CGovernanceObject::CheckSignature(CPubKey& pubKeyMasternode)
return true;
}
int CGovernanceObject::GetObjectSubtype()
{
// todo - 12.1
// - detect subtype from strData json, obj["subtype"]
if(nObjectType == GOVERNANCE_OBJECT_TRIGGER) return TRIGGER_SUPERBLOCK;
return -1;
}
uint256 CGovernanceObject::GetHash() const
{
// CREATE HASH OF ALL IMPORTANT PIECES OF DATA

View File

@ -273,8 +273,6 @@ public:
void UpdateSentinelVariables();
int GetObjectSubtype();
CAmount GetMinCollateralFee();
UniValue GetJSONObject();