Skip to content

Commit e01181f

Browse files
committed
[BDAP] Remove unused functions and methods
1 parent 37e0d97 commit e01181f

File tree

3 files changed

+0
-26
lines changed

3 files changed

+0
-26
lines changed

src/bdap/utils.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -215,17 +215,6 @@ void CreateFeeRecipient(CScript& scriptPubKey, const std::vector<unsigned char>&
215215
recipient = recp;
216216
}
217217

218-
CAmount GetDataFee(const CScript& scriptPubKey)
219-
{
220-
CAmount nFee = 0;
221-
CRecipient recp = {scriptPubKey, 0, false};
222-
CTxOut txout(0, scriptPubKey);
223-
size_t nSize = GetSerializeSize(txout, SER_DISK,0)+148u;
224-
nFee = CWallet::GetMinimumFee(nSize, nTxConfirmTarget, mempool);
225-
recp.nAmount = nFee;
226-
return recp.nAmount;
227-
}
228-
229218
void ToLowerCase(CharString& vchValue) {
230219
std::string strValue;
231220
CharString::const_iterator vi = vchValue.begin();
@@ -245,17 +234,6 @@ void ToLowerCase(std::string& strValue) {
245234
}
246235
}
247236

248-
CAmount GetBDAPFee(const CScript& scriptPubKey)
249-
{
250-
CAmount nFee = 0;
251-
CRecipient recp = {scriptPubKey, 0, false};
252-
CTxOut txout(0, scriptPubKey);
253-
size_t nSize = GetSerializeSize(txout, SER_DISK,0)+148u;
254-
nFee = CWallet::GetMinimumFee(nSize, nTxConfirmTarget, mempool);
255-
recp.nAmount = nFee;
256-
return recp.nAmount;
257-
}
258-
259237
bool DecodeBDAPTx(const CTransactionRef& tx, int& op1, int& op2, std::vector<std::vector<unsigned char> >& vvch)
260238
{
261239
bool found = false;

src/bdap/utils.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#define DYNAMIC_BDAP_UTILS_H
77

88
#include "bdap/bdap.h"
9-
#include "amount.h"
109
#include "primitives/transaction.h"
1110

1211
#include <string>
@@ -42,8 +41,6 @@ std::vector<unsigned char> vchFromString(const std::string& str);
4241
void CreateRecipient(const CScript& scriptPubKey, CRecipient& recipient);
4342
void ToLowerCase(CharString& vchValue);
4443
void ToLowerCase(std::string& strValue);
45-
CAmount GetDataFee(const CScript& scriptPubKey);
46-
CAmount GetBDAPFee(const CScript& scriptPubKey);
4744
bool DecodeBDAPTx(const CTransactionRef& tx, int& op1, int& op2, std::vector<std::vector<unsigned char> >& vvch);
4845
bool FindBDAPInTx(const CCoinsViewCache &inputs, const CTransaction& tx, std::vector<std::vector<unsigned char> >& vvch);
4946
int GetBDAPOpType(const CScript& script);

src/script/script.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,6 @@ class CReserveScript
756756
};
757757

758758
// TODO: Use a seperate code file for these BDAP functions
759-
bool IsDirectoryOp(int op);
760759
bool DecodeBDAPScript(const CScript& script, int& op, int& op2, std::vector<std::vector<unsigned char> >& vvch, CScript::const_iterator& pc);
761760
bool DecodeBDAPScript(const CScript& script, int& op1, int& op2, std::vector<std::vector<unsigned char> >& vvch);
762761
bool RemoveBDAPScript(const CScript& scriptIn, CScript& scriptOut);

0 commit comments

Comments
 (0)