Skip to content

Commit ad6aded

Browse files
committed
qt, refactor: remove unused parameters in TransactionDesc::FormatTxStatus()
1 parent 045f8d0 commit ad6aded

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/qt/transactiondesc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ using wallet::ISMINE_SPENDABLE;
3232
using wallet::ISMINE_WATCH_ONLY;
3333
using wallet::isminetype;
3434

35-
QString TransactionDesc::FormatTxStatus(const interfaces::WalletTx& wtx, const interfaces::WalletTxStatus& status, bool inMempool, int numBlocks)
35+
QString TransactionDesc::FormatTxStatus(const interfaces::WalletTxStatus& status, bool inMempool)
3636
{
3737
int depth = status.depth_in_main_chain;
3838
if (depth < 0) {
@@ -93,7 +93,7 @@ QString TransactionDesc::toHTML(interfaces::Node& node, interfaces::Wallet& wall
9393
CAmount nDebit = wtx.debit;
9494
CAmount nNet = nCredit - nDebit;
9595

96-
strHTML += "<b>" + tr("Status") + ":</b> " + FormatTxStatus(wtx, status, inMempool, numBlocks);
96+
strHTML += "<b>" + tr("Status") + ":</b> " + FormatTxStatus(status, inMempool);
9797
strHTML += "<br>";
9898

9999
strHTML += "<b>" + tr("Date") + ":</b> " + (nTime ? GUIUtil::dateTimeStr(nTime) : "") + "<br>";

src/qt/transactiondesc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class TransactionDesc: public QObject
2929
private:
3030
TransactionDesc() {}
3131

32-
static QString FormatTxStatus(const interfaces::WalletTx& wtx, const interfaces::WalletTxStatus& status, bool inMempool, int numBlocks);
32+
static QString FormatTxStatus(const interfaces::WalletTxStatus& status, bool inMempool);
3333
};
3434

3535
#endif // BITCOIN_QT_TRANSACTIONDESC_H

0 commit comments

Comments
 (0)