From 8ea1bd0f55810b2e0ae66a3764530d927421d17b Mon Sep 17 00:00:00 2001 From: Nathan Marley Date: Mon, 12 Feb 2018 04:45:38 -0800 Subject: [PATCH] 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. --- src/governance-object.cpp | 9 --------- src/governance-object.h | 2 -- 2 files changed, 11 deletions(-) diff --git a/src/governance-object.cpp b/src/governance-object.cpp index 9e0c7ba5a..79b9904a6 100644 --- a/src/governance-object.cpp +++ b/src/governance-object.cpp @@ -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 diff --git a/src/governance-object.h b/src/governance-object.h index cde38fbae..43f39b787 100644 --- a/src/governance-object.h +++ b/src/governance-object.h @@ -273,8 +273,6 @@ public: void UpdateSentinelVariables(); - int GetObjectSubtype(); - CAmount GetMinCollateralFee(); UniValue GetJSONObject();