mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Various tidying:
* Fix unused variable warnings. * Clean unused items from TER. * Improvement to LES use of shared_ptr.
This commit is contained in:
committed by
Vinnie Falco
parent
4d49d272eb
commit
d7e08f96a5
@@ -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.,
|
||||
|
||||
Reference in New Issue
Block a user