Remove unused resetModel functions

This commit is contained in:
tobtoht 2021-05-25 15:33:41 +02:00
parent 4f40e30056
commit 811421dca9
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C
6 changed files with 0 additions and 18 deletions

View file

@ -186,10 +186,6 @@ void CoinsWidget::onSweepOutput() {
dialog->deleteLater(); dialog->deleteLater();
} }
void CoinsWidget::resetModel() {
ui->coins->setModel(nullptr);
}
void CoinsWidget::copy(copyField field) { void CoinsWidget::copy(copyField field) {
CoinsInfo* c = this->currentEntry(); CoinsInfo* c = this->currentEntry();
if (!c) return; if (!c) return;

View file

@ -26,9 +26,6 @@ public:
void setModel(CoinsModel * model, Coins * coins); void setModel(CoinsModel * model, Coins * coins);
~CoinsWidget() override; ~CoinsWidget() override;
public slots:
void resetModel();
private slots: private slots:
void showHeaderMenu(const QPoint& position); void showHeaderMenu(const QPoint& position);
void setShowSpent(bool show); void setShowSpent(bool show);

View file

@ -97,11 +97,6 @@ void ContactsWidget::setSearchFilter(const QString &filter) {
m_proxyModel->setSearchFilter(filter); m_proxyModel->setSearchFilter(filter);
} }
void ContactsWidget::resetModel()
{
ui->contacts->setModel(nullptr);
}
void ContactsWidget::showHeaderMenu(const QPoint& position) void ContactsWidget::showHeaderMenu(const QPoint& position)
{ {
m_showFullAddressesAction->setChecked(m_model->isShowFullAddresses()); m_showFullAddressesAction->setChecked(m_model->isShowFullAddresses());

View file

@ -34,7 +34,6 @@ public slots:
void deleteContact(); void deleteContact();
void setShowFullAddresses(bool show); void setShowFullAddresses(bool show);
void setSearchFilter(const QString &filter); void setSearchFilter(const QString &filter);
void resetModel();
signals: signals:
void fillAddress(QString &address); void fillAddress(QString &address);

View file

@ -127,10 +127,6 @@ void ReceiveWidget::onShowTransactions() {
emit showTransactions(address); emit showTransactions(address);
} }
void ReceiveWidget::resetModel() {
ui->addresses->setModel(nullptr);
}
void ReceiveWidget::setShowFullAddresses(bool show) { void ReceiveWidget::setShowFullAddresses(bool show) {
if (!m_model) return; if (!m_model) return;
m_model->setShowFullAddresses(show); m_model->setShowFullAddresses(show);

View file

@ -38,7 +38,6 @@ public slots:
void setShowHiddenAddresses(bool show); void setShowHiddenAddresses(bool show);
void setSearchFilter(const QString &filter); void setSearchFilter(const QString &filter);
void onShowTransactions(); void onShowTransactions();
void resetModel();
signals: signals:
void showTransactions(const QString& address); void showTransactions(const QString& address);