diff options
| author | Philip Kaufmann <[email protected]> | 2015-02-09 11:25:23 +0100 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2015-02-09 11:28:03 +0100 |
| commit | deda3e156d9d424051758eeca9569a90365d2dd5 (patch) | |
| tree | 0bb72ae599b4833a74a091a183c18029d6c5043c /src | |
| parent | [Qt] use qint64 in BitcoinGUI::setNumBlocks (diff) | |
| download | discoin-deda3e156d9d424051758eeca9569a90365d2dd5.tar.xz discoin-deda3e156d9d424051758eeca9569a90365d2dd5.zip | |
[Qt] remove unused getNumBlocksAtStartup() from ClientModel
Diffstat (limited to 'src')
| -rw-r--r-- | src/qt/clientmodel.cpp | 11 | ||||
| -rw-r--r-- | src/qt/clientmodel.h | 3 |
2 files changed, 3 insertions, 11 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp index 03d94f2e1..729eb84a1 100644 --- a/src/qt/clientmodel.cpp +++ b/src/qt/clientmodel.cpp @@ -29,8 +29,9 @@ ClientModel::ClientModel(OptionsModel *optionsModel, QObject *parent) : optionsModel(optionsModel), peerTableModel(0), cachedNumBlocks(0), - cachedReindexing(0), cachedImporting(0), - numBlocksAtStartup(-1), pollTimer(0) + cachedReindexing(0), + cachedImporting(0), + pollTimer(0) { peerTableModel = new PeerTableModel(this); pollTimer = new QTimer(this); @@ -65,12 +66,6 @@ int ClientModel::getNumBlocks() const return chainActive.Height(); } -int ClientModel::getNumBlocksAtStartup() -{ - if (numBlocksAtStartup == -1) numBlocksAtStartup = getNumBlocks(); - return numBlocksAtStartup; -} - quint64 ClientModel::getTotalBytesRecv() const { return CNode::GetTotalBytesRecv(); diff --git a/src/qt/clientmodel.h b/src/qt/clientmodel.h index 4856a72d7..7b74728b2 100644 --- a/src/qt/clientmodel.h +++ b/src/qt/clientmodel.h @@ -48,7 +48,6 @@ public: //! Return number of connections, default is in- and outbound (total) int getNumConnections(unsigned int flags = CONNECTIONS_ALL) const; int getNumBlocks() const; - int getNumBlocksAtStartup(); quint64 getTotalBytesRecv() const; quint64 getTotalBytesSent() const; @@ -77,8 +76,6 @@ private: bool cachedReindexing; bool cachedImporting; - int numBlocksAtStartup; - QTimer *pollTimer; void subscribeToCoreSignals(); |