mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Remove unused variables
This commit is contained in:
@@ -80,7 +80,6 @@ class Ledger::sles_iter_impl
|
|||||||
: public sles_type::iter_base
|
: public sles_type::iter_base
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
ReadView const* view_;
|
|
||||||
SHAMap::const_iterator iter_;
|
SHAMap::const_iterator iter_;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@@ -89,10 +88,8 @@ public:
|
|||||||
|
|
||||||
sles_iter_impl (sles_iter_impl const&) = default;
|
sles_iter_impl (sles_iter_impl const&) = default;
|
||||||
|
|
||||||
sles_iter_impl (SHAMap::const_iterator iter,
|
sles_iter_impl (SHAMap::const_iterator iter)
|
||||||
ReadView const& view)
|
: iter_ (iter)
|
||||||
: view_ (&view)
|
|
||||||
, iter_ (iter)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -134,7 +131,6 @@ class Ledger::txs_iter_impl
|
|||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
bool metadata_;
|
bool metadata_;
|
||||||
ReadView const* view_;
|
|
||||||
SHAMap::const_iterator iter_;
|
SHAMap::const_iterator iter_;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@@ -143,12 +139,9 @@ public:
|
|||||||
|
|
||||||
txs_iter_impl (txs_iter_impl const&) = default;
|
txs_iter_impl (txs_iter_impl const&) = default;
|
||||||
|
|
||||||
txs_iter_impl (bool metadata,
|
txs_iter_impl(bool metadata,
|
||||||
SHAMap::const_iterator iter,
|
SHAMap::const_iterator iter)
|
||||||
ReadView const& view)
|
: metadata_(metadata), iter_(iter)
|
||||||
: metadata_ (metadata)
|
|
||||||
, view_ (&view)
|
|
||||||
, iter_ (iter)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -458,43 +451,35 @@ auto
|
|||||||
Ledger::slesBegin() const ->
|
Ledger::slesBegin() const ->
|
||||||
std::unique_ptr<sles_type::iter_base>
|
std::unique_ptr<sles_type::iter_base>
|
||||||
{
|
{
|
||||||
return std::make_unique<
|
return std::make_unique<sles_iter_impl>(stateMap_->begin());
|
||||||
sles_iter_impl>(
|
|
||||||
stateMap_->begin(), *this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auto
|
auto
|
||||||
Ledger::slesEnd() const ->
|
Ledger::slesEnd() const ->
|
||||||
std::unique_ptr<sles_type::iter_base>
|
std::unique_ptr<sles_type::iter_base>
|
||||||
{
|
{
|
||||||
return std::make_unique<
|
return std::make_unique<sles_iter_impl>(stateMap_->end());
|
||||||
sles_iter_impl>(
|
|
||||||
stateMap_->end(), *this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auto
|
auto
|
||||||
Ledger::slesUpperBound(uint256 const& key) const ->
|
Ledger::slesUpperBound(uint256 const& key) const ->
|
||||||
std::unique_ptr<sles_type::iter_base>
|
std::unique_ptr<sles_type::iter_base>
|
||||||
{
|
{
|
||||||
return std::make_unique<
|
return std::make_unique<sles_iter_impl>(stateMap_->upper_bound(key));
|
||||||
sles_iter_impl>(
|
|
||||||
stateMap_->upper_bound(key), *this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auto
|
auto
|
||||||
Ledger::txsBegin() const ->
|
Ledger::txsBegin() const ->
|
||||||
std::unique_ptr<txs_type::iter_base>
|
std::unique_ptr<txs_type::iter_base>
|
||||||
{
|
{
|
||||||
return std::make_unique<txs_iter_impl>(
|
return std::make_unique<txs_iter_impl>(!open(), txMap_->begin());
|
||||||
!open(), txMap_->begin(), *this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auto
|
auto
|
||||||
Ledger::txsEnd() const ->
|
Ledger::txsEnd() const ->
|
||||||
std::unique_ptr<txs_type::iter_base>
|
std::unique_ptr<txs_type::iter_base>
|
||||||
{
|
{
|
||||||
return std::make_unique<txs_iter_impl>(
|
return std::make_unique<txs_iter_impl>(!open(), txMap_->end());
|
||||||
!open(), txMap_->end(), *this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|||||||
@@ -253,6 +253,8 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual ~Env() = default;
|
||||||
|
|
||||||
Application&
|
Application&
|
||||||
app()
|
app()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -130,9 +130,6 @@ public:
|
|||||||
std::vector< Blob > gotNodes;
|
std::vector< Blob > gotNodes;
|
||||||
std::vector<uint256> hashes;
|
std::vector<uint256> hashes;
|
||||||
|
|
||||||
std::vector<SHAMapNodeID>::iterator nodeIDIterator;
|
|
||||||
std::vector< Blob >::iterator rawNodeIterator;
|
|
||||||
|
|
||||||
destination.setSynching ();
|
destination.setSynching ();
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user