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

@@ -674,7 +674,7 @@ void Peer::recvTransaction(newcoin::TMTransaction& packet)
#ifdef DEBUG
std::cerr << "Transaction from peer fails validity tests" << std::endl;
Json::StyledStreamWriter w;
w.write(std::cerr, tx->getJson(true));
w.write(std::cerr, tx->getJson(0));
#endif
return;
}

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;
}

View File

@@ -268,7 +268,7 @@ public:
bool operator<=(const Transaction&) const;
bool operator>=(const Transaction&) const;
Json::Value getJson(bool decorate, bool paid_local=false, bool credited_local=false) const;
Json::Value getJson(int options) const;
static bool isHexTxID(const std::string&);