mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Remove some dead Transaction::getJson options.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user