Various tidying:

* Fix unused variable warnings.
* Clean unused items from TER.
* Improvement to LES use of shared_ptr.
This commit is contained in:
Tom Ritchford
2014-07-09 14:36:23 -04:00
committed by Vinnie Falco
parent 4d49d272eb
commit d7e08f96a5
7 changed files with 153 additions and 85 deletions

View File

@@ -1055,6 +1055,8 @@ void LedgerEntrySet::ownerCountAdjust (
TER LedgerEntrySet::offerDelete (SLE::pointer sleOffer)
{
if (!sleOffer)
return tesSUCCESS;
auto offerIndex = sleOffer->getIndex ();
auto owner = sleOffer->getFieldAccount160 (sfAccount);
@@ -1079,16 +1081,6 @@ TER LedgerEntrySet::offerDelete (SLE::pointer sleOffer)
return (terResult == tesSUCCESS) ? terResult2 : terResult;
}
TER LedgerEntrySet::offerDelete (uint256 const& offerIndex)
{
SLE::pointer sleOffer = entryCache (ltOFFER, offerIndex);
if (!sleOffer)
return tesSUCCESS;
return offerDelete (sleOffer);
}
// Returns amount owed by uToAccountID to uFromAccountID.
// <-- $owed/currency/uToAccountID:
// positive: uFromAccountID holds IOUs.,