Skip to content

Commit 71fbdb7

Browse files
committed
GUI: Remove SendToSelf TransactionRecord type
1 parent f3fbe99 commit 71fbdb7

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

src/qt/transactionrecord.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ class TransactionRecord
7878
SendToOther,
7979
RecvWithAddress,
8080
RecvFromOther,
81-
SendToSelf
8281
};
8382

8483
/** Number of confirmation recommended for accepting a transaction */

src/qt/transactiontablemodel.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,6 @@ QString TransactionTableModel::formatTxType(const TransactionRecord *wtx) const
380380
case TransactionRecord::SendToAddress:
381381
case TransactionRecord::SendToOther:
382382
return tr("Sent to");
383-
case TransactionRecord::SendToSelf:
384-
return tr("Payment to yourself");
385383
case TransactionRecord::Generated:
386384
return tr("Mined");
387385
default:
@@ -424,8 +422,6 @@ QString TransactionTableModel::formatTxToAddress(const TransactionRecord *wtx, b
424422
return lookupAddress(wtx->address, tooltip) + watchAddress;
425423
case TransactionRecord::SendToOther:
426424
return QString::fromStdString(wtx->address) + watchAddress;
427-
case TransactionRecord::SendToSelf:
428-
return lookupAddress(wtx->address, tooltip) + watchAddress;
429425
default:
430426
return tr("(n/a)") + watchAddress;
431427
}
@@ -444,8 +440,6 @@ QVariant TransactionTableModel::addressColor(const TransactionRecord *wtx) const
444440
if(label.isEmpty())
445441
return COLOR_BAREADDRESS;
446442
} break;
447-
case TransactionRecord::SendToSelf:
448-
return COLOR_BAREADDRESS;
449443
default:
450444
break;
451445
}

src/qt/transactionview.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *pa
9191
TransactionFilterProxy::TYPE(TransactionRecord::RecvFromOther));
9292
typeWidget->addItem(tr("Sent to"), TransactionFilterProxy::TYPE(TransactionRecord::SendToAddress) |
9393
TransactionFilterProxy::TYPE(TransactionRecord::SendToOther));
94-
typeWidget->addItem(tr("To yourself"), TransactionFilterProxy::TYPE(TransactionRecord::SendToSelf));
9594
typeWidget->addItem(tr("Mined"), TransactionFilterProxy::TYPE(TransactionRecord::Generated));
9695
typeWidget->addItem(tr("Other"), TransactionFilterProxy::TYPE(TransactionRecord::Other));
9796

0 commit comments

Comments
 (0)