]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
Coins: remove redundant functions
authortobtoht <tob@featherwallet.org>
Wed, 12 Mar 2025 20:01:18 +0000 (21:01 +0100)
committertobtoht <tob@featherwallet.org>
Wed, 12 Mar 2025 20:01:18 +0000 (21:01 +0100)
src/model/CoinsModel.cpp
src/model/CoinsModel.h

index 938316da9acc17f2712bd23f6ba4b00c19b9006e..c3d5230c3a3f89b42a15f35af39d10da8012a426 100644 (file)
@@ -16,16 +16,8 @@ CoinsModel::CoinsModel(QObject *parent, Coins *coins)
         : QAbstractTableModel(parent)
         , m_coins(coins)
 {
-    connect(m_coins, &Coins::refreshStarted, this, &CoinsModel::startReset);
-    connect(m_coins, &Coins::refreshFinished, this, &CoinsModel::endReset);
-}
-
-void CoinsModel::startReset(){
-    beginResetModel();
-}
-
-void CoinsModel::endReset(){
-    endResetModel();
+    connect(m_coins, &Coins::refreshStarted, this, &CoinsModel::beginResetModel);
+    connect(m_coins, &Coins::refreshFinished, this, &CoinsModel::endResetModel);
 }
 
 int CoinsModel::rowCount(const QModelIndex &parent) const
index 47afb7e9c0e1be0b8608ffbbee178837eecdd861..827724b49333c89e4096831f765afba99de5bc8f 100644 (file)
@@ -46,10 +46,6 @@ public:
 signals:
     void descriptionChanged();
 
-public slots:
-    void startReset();
-    void endReset();
-
 private:
     QVariant parseTransactionInfo(const CoinsInfo &cInfo, int column, int role) const;