diff --git a/src/qt/bantablemodel.cpp b/src/qt/bantablemodel.cpp index 1ef120ccf03..ee40cdbf57d 100644 --- a/src/qt/bantablemodel.cpp +++ b/src/qt/bantablemodel.cpp @@ -13,7 +13,6 @@ #include #include -#include #include #include @@ -65,33 +64,17 @@ public: BanTableModel::BanTableModel(ClientModel *parent) : QAbstractTableModel(parent), - clientModel(parent), - timer(0) + clientModel(parent) { columns << tr("IP/Netmask") << tr("Banned Until"); priv = new BanTablePriv(); // default to unsorted priv->sortColumn = -1; - // set up timer for auto refresh - timer = new QTimer(); - connect(timer, SIGNAL(timeout()), SLOT(refresh())); - timer->setInterval(MODEL_UPDATE_DELAY); - // load initial data refresh(); } -void BanTableModel::startAutoRefresh() -{ - timer->start(); -} - -void BanTableModel::stopAutoRefresh() -{ - timer->stop(); -} - int BanTableModel::rowCount(const QModelIndex &parent) const { Q_UNUSED(parent); diff --git a/src/qt/bantablemodel.h b/src/qt/bantablemodel.h index 8d3da4c7374..c0f0813f286 100644 --- a/src/qt/bantablemodel.h +++ b/src/qt/bantablemodel.h @@ -13,10 +13,6 @@ class ClientModel; class BanTablePriv; -QT_BEGIN_NAMESPACE -class QTimer; -QT_END_NAMESPACE - struct CCombinedBan { CSubNet subnet; int64_t bantil; @@ -59,7 +55,6 @@ private: ClientModel *clientModel; QStringList columns; BanTablePriv *priv; - QTimer *timer; }; #endif // BITCOIN_QT_BANTABLEMODEL_H