Skip to content

Commit

Permalink
[Qt] remove unused getNumBlocksAtStartup() from ClientModel
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Kaufmann committed Feb 9, 2015
1 parent 47ee8cf commit deda3e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
11 changes: 3 additions & 8 deletions src/qt/clientmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
Expand Down
3 changes: 0 additions & 3 deletions src/qt/clientmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ class ClientModel : public QObject
//! 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;
Expand Down Expand Up @@ -77,8 +76,6 @@ class ClientModel : public QObject
bool cachedReindexing;
bool cachedImporting;

int numBlocksAtStartup;

QTimer *pollTimer;

void subscribeToCoreSignals();
Expand Down

0 comments on commit deda3e1

Please sign in to comment.