Remove unused Application class members

This commit is contained in:
Vinnie Falco
2013-06-16 20:55:17 -07:00
parent 5371379c3c
commit 61c904a355

View File

@@ -23,8 +23,9 @@ public:
LocalCredentials& getLocalCredentials () LocalCredentials& getLocalCredentials ()
{ {
return mLocalCredentials ; return m_localCredentials ;
} }
NetworkOPs& getOPs () NetworkOPs& getOPs ()
{ {
return mNetOps; return mNetOps;
@@ -34,6 +35,7 @@ public:
{ {
return mIOService; return mIOService;
} }
boost::asio::io_service& getAuxService () boost::asio::io_service& getAuxService ()
{ {
return mAuxService; return mAuxService;
@@ -43,46 +45,57 @@ public:
{ {
return mLedgerMaster; return mLedgerMaster;
} }
InboundLedgers& getInboundLedgers () InboundLedgers& getInboundLedgers ()
{ {
return m_inboundLedgers; return m_inboundLedgers;
} }
TransactionMaster& getMasterTransaction () TransactionMaster& getMasterTransaction ()
{ {
return mMasterTransaction; return mMasterTransaction;
} }
NodeCache& getTempNodeCache () NodeCache& getTempNodeCache ()
{ {
return mTempNodeCache; return mTempNodeCache;
} }
HashedObjectStore& getHashedObjectStore () HashedObjectStore& getHashedObjectStore ()
{ {
return mHashedObjectStore; return mHashedObjectStore;
} }
JobQueue& getJobQueue () JobQueue& getJobQueue ()
{ {
return mJobQueue; return mJobQueue;
} }
boost::recursive_mutex& getMasterLock () boost::recursive_mutex& getMasterLock ()
{ {
return mMasterLock; return mMasterLock;
} }
LoadManager& getLoadManager () LoadManager& getLoadManager ()
{ {
return mLoadMgr; return mLoadMgr;
} }
TXQueue& getTxnQueue () TXQueue& getTxnQueue ()
{ {
return mTxnQueue; return mTxnQueue;
} }
PeerDoor& getPeerDoor () PeerDoor& getPeerDoor ()
{ {
return *mPeerDoor; return *mPeerDoor;
} }
OrderBookDB& getOrderBookDB () OrderBookDB& getOrderBookDB ()
{ {
return mOrderBookDB; return mOrderBookDB;
} }
SLECache& getSLECache () SLECache& getSLECache ()
{ {
return mSLECache; return mSLECache;
@@ -92,30 +105,37 @@ public:
{ {
return *mFeatures; return *mFeatures;
} }
ILoadFeeTrack& getFeeTrack () ILoadFeeTrack& getFeeTrack ()
{ {
return *mFeeTrack; return *mFeeTrack;
} }
IFeeVote& getFeeVote () IFeeVote& getFeeVote ()
{ {
return *mFeeVote; return *mFeeVote;
} }
IHashRouter& getHashRouter () IHashRouter& getHashRouter ()
{ {
return *mHashRouter; return *mHashRouter;
} }
IValidations& getValidations () IValidations& getValidations ()
{ {
return *mValidations; return *mValidations;
} }
IUniqueNodeList& getUNL () IUniqueNodeList& getUNL ()
{ {
return *mUNL; return *mUNL;
} }
IProofOfWorkFactory& getProofOfWorkFactory () IProofOfWorkFactory& getProofOfWorkFactory ()
{ {
return *mProofOfWorkFactory; return *mProofOfWorkFactory;
} }
IPeers& getPeers () IPeers& getPeers ()
{ {
return *mPeers; return *mPeers;
@@ -183,6 +203,7 @@ private:
void startNewLedger (); void startNewLedger ();
bool loadOldLedger (const std::string&); bool loadOldLedger (const std::string&);
private:
boost::asio::io_service mIOService; boost::asio::io_service mIOService;
boost::asio::io_service mAuxService; boost::asio::io_service mAuxService;
boost::asio::io_service::work mIOWork; boost::asio::io_service::work mIOWork;
@@ -190,19 +211,19 @@ private:
boost::recursive_mutex mMasterLock; boost::recursive_mutex mMasterLock;
LocalCredentials mLocalCredentials; LocalCredentials m_localCredentials;
LedgerMaster mLedgerMaster; LedgerMaster mLedgerMaster;
InboundLedgers m_inboundLedgers; InboundLedgers m_inboundLedgers;
TransactionMaster mMasterTransaction; TransactionMaster mMasterTransaction;
NetworkOPs mNetOps; NetworkOPs mNetOps;
NodeCache mTempNodeCache; NodeCache mTempNodeCache;
HashedObjectStore mHashedObjectStore; HashedObjectStore mHashedObjectStore;
SLECache mSLECache; SLECache mSLECache;
SNTPClient mSNTPClient; SNTPClient mSNTPClient;
JobQueue mJobQueue; JobQueue mJobQueue;
LoadManager mLoadMgr; LoadManager mLoadMgr;
TXQueue mTxnQueue; TXQueue mTxnQueue;
OrderBookDB mOrderBookDB; OrderBookDB mOrderBookDB;
// VFALCO Clean stuff // VFALCO Clean stuff
beast::ScopedPointer <IFeatures> mFeatures; beast::ScopedPointer <IFeatures> mFeatures;
@@ -234,10 +255,7 @@ private:
boost::asio::deadline_timer mSweepTimer; boost::asio::deadline_timer mSweepTimer;
std::map <std::string, Peer::pointer> mPeerMap; bool volatile mShutdown;
boost::recursive_mutex mPeerMapLock;
volatile bool mShutdown;
}; };
Application::Application () Application::Application ()
@@ -474,7 +492,7 @@ void Application::setup ()
// Begin validation and ip maintenance. // Begin validation and ip maintenance.
// - LocalCredentials maintains local information: including identity and network connection persistence information. // - LocalCredentials maintains local information: including identity and network connection persistence information.
// //
mLocalCredentials.start (); m_localCredentials.start ();
// //
// Set up UNL. // Set up UNL.