Remove some dead Transaction::getJson options.

This commit is contained in:
JoelKatz
2012-06-28 13:13:58 -07:00
parent b712c192e6
commit 64f9f044c8
3 changed files with 3 additions and 14 deletions

View File

@@ -637,12 +637,11 @@ bool Transaction::convertToTransactions(uint32 firstLedgerSeq, uint32 secondLedg
return true;
}
Json::Value Transaction::getJson(bool decorate, bool paid, bool credited) const
Json::Value Transaction::getJson(int options) const
{
Json::Value ret(mTransaction->getJson(0));
if (mInLedger) ret["inLedger"]=mInLedger;
if (paid) ret["paid"]=true;
switch(mStatus)
{
@@ -658,16 +657,6 @@ Json::Value Transaction::getJson(bool decorate, bool paid, bool credited) const
default: ret["status"] = "unknown";
}
#if 0
if(decorate)
{
LocalAccount::pointer lac = theApp->getWallet().getLocalAccount(mAccountFrom);
if (!!lac) source = lac->getJson();
lac = theApp->getWallet().getLocalAccount(mAccountTo);
if (!!lac) destination = lac->getJson();
}
#endif
return ret;
}