mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-02 08:55:53 +00:00
Remove dead code.
This commit is contained in:
@@ -426,30 +426,6 @@ Transaction::pointer NetworkOPs::findTransactionByID(const uint256& transactionI
|
|||||||
return Transaction::load(transactionID);
|
return Transaction::load(transactionID);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
int NetworkOPs::findTransactionsBySource(const uint256& uLedger, std::list<Transaction::pointer>& txns,
|
|
||||||
const RippleAddress& sourceAccount, uint32 minSeq, uint32 maxSeq)
|
|
||||||
{
|
|
||||||
AccountState::pointer state = getAccountState(uLedger, sourceAccount);
|
|
||||||
if (!state) return 0;
|
|
||||||
if (minSeq > state->getSeq()) return 0;
|
|
||||||
if (maxSeq > state->getSeq()) maxSeq = state->getSeq();
|
|
||||||
if (maxSeq > minSeq) return 0;
|
|
||||||
|
|
||||||
int count = 0;
|
|
||||||
for(unsigned int i = minSeq; i <= maxSeq; ++i)
|
|
||||||
{
|
|
||||||
Transaction::pointer txn = Transaction::findFrom(sourceAccount, i);
|
|
||||||
if(txn)
|
|
||||||
{
|
|
||||||
txns.push_back(txn);
|
|
||||||
++count;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return count;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int NetworkOPs::findTransactionsByDestination(std::list<Transaction::pointer>& txns,
|
int NetworkOPs::findTransactionsByDestination(std::list<Transaction::pointer>& txns,
|
||||||
const RippleAddress& destinationAccount, uint32 startLedgerSeq, uint32 endLedgerSeq, int maxTransactions)
|
const RippleAddress& destinationAccount, uint32 startLedgerSeq, uint32 endLedgerSeq, int maxTransactions)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -249,16 +249,6 @@ Transaction::pointer Transaction::load(const uint256& id)
|
|||||||
return transactionFromSQL(sql);
|
return transactionFromSQL(sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
Transaction::pointer Transaction::findFrom(const RippleAddress& fromID, uint32 seq)
|
|
||||||
{
|
|
||||||
std::string sql = "SELECT LedgerSeq,Status,RawTxn FROM Transactions WHERE FromID='";
|
|
||||||
sql.append(fromID.humanAccountID());
|
|
||||||
sql.append("' AND FromSeq='");
|
|
||||||
sql.append(boost::lexical_cast<std::string>(seq));
|
|
||||||
sql.append("';");
|
|
||||||
return transactionFromSQL(sql);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Transaction::convertToTransactions(uint32 firstLedgerSeq, uint32 secondLedgerSeq,
|
bool Transaction::convertToTransactions(uint32 firstLedgerSeq, uint32 secondLedgerSeq,
|
||||||
bool checkFirstTransactions, bool checkSecondTransactions, const SHAMap::SHAMapDiff& inMap,
|
bool checkFirstTransactions, bool checkSecondTransactions, const SHAMap::SHAMapDiff& inMap,
|
||||||
std::map<uint256, std::pair<Transaction::pointer, Transaction::pointer> >& outMap)
|
std::map<uint256, std::pair<Transaction::pointer, Transaction::pointer> >& outMap)
|
||||||
|
|||||||
@@ -99,7 +99,6 @@ public:
|
|||||||
// database functions
|
// database functions
|
||||||
void save();
|
void save();
|
||||||
static Transaction::pointer load(const uint256& id);
|
static Transaction::pointer load(const uint256& id);
|
||||||
static Transaction::pointer findFrom(const RippleAddress& fromID, uint32 seq);
|
|
||||||
|
|
||||||
// conversion function
|
// conversion function
|
||||||
static bool convertToTransactions(uint32 ourLedgerSeq, uint32 otherLedgerSeq,
|
static bool convertToTransactions(uint32 ourLedgerSeq, uint32 otherLedgerSeq,
|
||||||
|
|||||||
Reference in New Issue
Block a user