mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-03 09:25:51 +00:00
Pathfinding cleanup:
* Remove unused code * Do not use `pointer` and `ref` type aliases * Misc. cleanups
This commit is contained in:
committed by
Vinnie Falco
parent
9cb02028ed
commit
d736232142
@@ -32,10 +32,11 @@ namespace ripple {
|
||||
/** Get the current RippleLineCache, updating it if necessary.
|
||||
Get the correct ledger to use.
|
||||
*/
|
||||
RippleLineCache::pointer PathRequests::getLineCache (
|
||||
std::shared_ptr <ReadView const> const& ledger, bool authoritative)
|
||||
std::shared_ptr<RippleLineCache>
|
||||
PathRequests::getLineCache (
|
||||
std::shared_ptr <ReadView const> const& ledger,
|
||||
bool authoritative)
|
||||
{
|
||||
|
||||
ScopedLockType sl (mLock);
|
||||
|
||||
std::uint32_t lineSeq = mLineCache ? mLineCache->getLedger()->seq() : 0;
|
||||
@@ -59,7 +60,7 @@ void PathRequests::updateAll (std::shared_ptr <ReadView const> const& inLedger,
|
||||
jtPATH_FIND, "PathRequest::updateAll");
|
||||
|
||||
std::vector<PathRequest::wptr> requests;
|
||||
RippleLineCache::pointer cache;
|
||||
std::shared_ptr<RippleLineCache> cache;
|
||||
|
||||
// Get the ledger and cache we should be using
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user