From 43c1f5b8d7accc158dfd6b270cb9bfd0cd900a3e Mon Sep 17 00:00:00 2001 From: Jonas Schnelli Date: Fri, 26 Jun 2015 10:21:13 +0200 Subject: [Qt] remove unused timer-code from banlistmodel.cpp --- src/qt/bantablemodel.cpp | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'src/qt/bantablemodel.cpp') diff --git a/src/qt/bantablemodel.cpp b/src/qt/bantablemodel.cpp index 1ef120ccf..ee40cdbf5 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); -- cgit v1.2.3