Browse Source

[Qt] remove unused getNumBlocksAtStartup() from ClientModel

0.13
Philip Kaufmann 10 years ago
parent
commit
deda3e156d
  1. 11
      src/qt/clientmodel.cpp
  2. 3
      src/qt/clientmodel.h

11
src/qt/clientmodel.cpp

@ -29,8 +29,9 @@ ClientModel::ClientModel(OptionsModel *optionsModel, QObject *parent) : @@ -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 @@ -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();

3
src/qt/clientmodel.h

@ -48,7 +48,6 @@ public: @@ -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: @@ -77,8 +76,6 @@ private:
bool cachedReindexing;
bool cachedImporting;
int numBlocksAtStartup;
QTimer *pollTimer;
void subscribeToCoreSignals();

Loading…
Cancel
Save