Skip to content

Commit

Permalink
Remove unused attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouzo committed Jul 28, 2023
1 parent dbde6ec commit 6062ead
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
16 changes: 1 addition & 15 deletions src/masternodes/govvariables/attributes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,6 @@ const std::map<uint8_t, std::map<std::string, uint8_t>> &ATTRIBUTES::allowedKeys
{"emission-unused-fund", DFIPKeys::EmissionUnusedFund},
{"mint-tokens-to-address", DFIPKeys::MintTokens},
{"transferdomain", DFIPKeys::TransferDomain},
{"dst20-dvm", DFIPKeys::DST20DVM},
{"dst20-evm", DFIPKeys::DST20EVM},
{"transferdomain-dvm", DFIPKeys::TransferDomainNativeDVM},
{"transferdomain-evm", DFIPKeys::TransferDomainNativeEVM}
}},
{AttributeTypes::EVMType,
{
Expand Down Expand Up @@ -347,10 +343,6 @@ const std::map<uint8_t, std::map<uint8_t, std::string>> &ATTRIBUTES::displayKeys
{DFIPKeys::EmissionUnusedFund, "emission-unused-fund"},
{DFIPKeys::MintTokens, "mint-tokens-to-address"},
{DFIPKeys::TransferDomain, "transferdomain"},
{DFIPKeys::DST20DVM, "dst20-dvm"},
{DFIPKeys::DST20EVM, "dst20-evm"},
{DFIPKeys::TransferDomainNativeDVM, "transferdomain-dvm"},
{DFIPKeys::TransferDomainNativeEVM, "transferdomain-evm"},
}},
{AttributeTypes::EVMType,
{
Expand Down Expand Up @@ -751,10 +743,6 @@ const std::map<uint8_t, std::map<uint8_t, std::function<ResVal<CAttributeValue>(
{DFIPKeys::EmissionUnusedFund, VerifyBool},
{DFIPKeys::MintTokens, VerifyBool},
{DFIPKeys::TransferDomain, VerifyBool},
{DFIPKeys::DST20DVM, VerifyBool},
{DFIPKeys::DST20EVM, VerifyBool},
{DFIPKeys::TransferDomainNativeDVM, VerifyBool},
{DFIPKeys::TransferDomainNativeEVM, VerifyBool},
}},
{AttributeTypes::Locks,
{
Expand Down Expand Up @@ -999,9 +987,7 @@ Res ATTRIBUTES::ProcessVariable(const std::string &key,
typeKey != DFIPKeys::ConsortiumEnabled && typeKey != DFIPKeys::CFPPayout &&
typeKey != DFIPKeys::EmissionUnusedFund && typeKey != DFIPKeys::MintTokens &&
typeKey != DFIPKeys::EVMEnabled && typeKey != DFIPKeys::ICXEnabled &&
typeKey != DFIPKeys::TransferDomain && typeKey != DFIPKeys::DST20DVM &&
typeKey != DFIPKeys::DST20EVM && typeKey != DFIPKeys::TransferDomainNativeDVM &&
typeKey != DFIPKeys::TransferDomainNativeEVM) {
typeKey != DFIPKeys::TransferDomain) {
return DeFiErrors::GovVarVariableUnsupportedFeatureType(typeKey);
}
} else if (typeId == ParamIDs::Foundation) {
Expand Down
4 changes: 0 additions & 4 deletions src/masternodes/govvariables/attributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ enum DFIPKeys : uint8_t {
EVMEnabled = 'u',
ICXEnabled = 'v',
TransferDomain = 'w',
DST20DVM = 'x',
DST20EVM = 'y',
TransferDomainNativeDVM = 'z',
TransferDomainNativeEVM = '1',
};

enum GovernanceKeys : uint8_t {
Expand Down

0 comments on commit 6062ead

Please sign in to comment.