Remove useless NetworkOPs::getClosedLedger.

This commit is contained in:
Arthur Britto
2012-09-26 15:03:19 -07:00
parent be54bf070c
commit cae6ea1c33
3 changed files with 35 additions and 56 deletions

View File

@@ -69,7 +69,9 @@ void NetworkOPs::closeTimeOffset(int offset)
uint32 NetworkOPs::getLedgerID(const uint256& hash)
{
return mLedgerMaster->getLedgerByHash(hash)->getLedgerSeq();
Ledger::ref lrLedger = mLedgerMaster->getLedgerByHash(hash);
return lrLedger ? lrLedger->getLedgerSeq() : 0;
}
uint32 NetworkOPs::getCurrentLedgerID()