qt, refactor: remove unused parameters in TransactionDesc::FormatTxStatus()

This commit is contained in:
w0xlt 2022-02-21 15:22:48 -03:00
parent 045f8d0310
commit ad6adedb46
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ using wallet::ISMINE_SPENDABLE;
using wallet::ISMINE_WATCH_ONLY; using wallet::ISMINE_WATCH_ONLY;
using wallet::isminetype; using wallet::isminetype;
QString TransactionDesc::FormatTxStatus(const interfaces::WalletTx& wtx, const interfaces::WalletTxStatus& status, bool inMempool, int numBlocks) QString TransactionDesc::FormatTxStatus(const interfaces::WalletTxStatus& status, bool inMempool)
{ {
int depth = status.depth_in_main_chain; int depth = status.depth_in_main_chain;
if (depth < 0) { if (depth < 0) {
@ -93,7 +93,7 @@ QString TransactionDesc::toHTML(interfaces::Node& node, interfaces::Wallet& wall
CAmount nDebit = wtx.debit; CAmount nDebit = wtx.debit;
CAmount nNet = nCredit - nDebit; CAmount nNet = nCredit - nDebit;
strHTML += "<b>" + tr("Status") + ":</b> " + FormatTxStatus(wtx, status, inMempool, numBlocks); strHTML += "<b>" + tr("Status") + ":</b> " + FormatTxStatus(status, inMempool);
strHTML += "<br>"; strHTML += "<br>";
strHTML += "<b>" + tr("Date") + ":</b> " + (nTime ? GUIUtil::dateTimeStr(nTime) : "") + "<br>"; strHTML += "<b>" + tr("Date") + ":</b> " + (nTime ? GUIUtil::dateTimeStr(nTime) : "") + "<br>";

View File

@ -29,7 +29,7 @@ public:
private: private:
TransactionDesc() {} TransactionDesc() {}
static QString FormatTxStatus(const interfaces::WalletTx& wtx, const interfaces::WalletTxStatus& status, bool inMempool, int numBlocks); static QString FormatTxStatus(const interfaces::WalletTxStatus& status, bool inMempool);
}; };
#endif // BITCOIN_QT_TRANSACTIONDESC_H #endif // BITCOIN_QT_TRANSACTIONDESC_H