Remove mLedger from PathState. It's not used and it's scary (because an LES could amend it).

This commit is contained in:
JoelKatz
2013-04-13 19:17:32 -07:00
parent 1f5d380546
commit 199029b8b5
3 changed files with 8 additions and 11 deletions

View File

@@ -71,8 +71,6 @@ extern std::size_t hash_value(const aciSource& asValue);
class PathState
{
protected:
Ledger::pointer mLedger;
TER pushNode(const int iType, const uint160& uAccountID, const uint160& uCurrencyID, const uint160& uIssuerID);
TER pushImply(const uint160& uAccountID, const uint160& uCurrencyID, const uint160& uIssuerID);
@@ -116,12 +114,11 @@ public:
PathState(
const STAmount& saSend,
const STAmount& saSendMax,
Ledger::pointer lrLedger = Ledger::pointer()
) : mLedger(lrLedger), saInReq(saSendMax), saOutReq(saSend) { ; }
const STAmount& saSendMax
) : saInReq(saSendMax), saOutReq(saSend) { ; }
PathState(const PathState& psSrc, bool bUnused)
: mLedger(psSrc.mLedger), saInReq(psSrc.saInReq), saOutReq(psSrc.saOutReq) { ; }
: saInReq(psSrc.saInReq), saOutReq(psSrc.saOutReq) { ; }
void setExpanded(
const LedgerEntrySet& lesSource,