mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
refactor: remove unused methods {CDBIterator,CCoinsViewDBCursor}::GetValueSize()
These methods haven't been used since the chainstate db cache has been
switched from per-tx to per-txout model years ago (PR #10195, commit
d342424301
).
This commit is contained in:
parent
5884a47c36
commit
fb38c6e21f
3 changed files with 0 additions and 12 deletions
|
@ -142,7 +142,6 @@ public:
|
||||||
|
|
||||||
virtual bool GetKey(COutPoint &key) const = 0;
|
virtual bool GetKey(COutPoint &key) const = 0;
|
||||||
virtual bool GetValue(Coin &coin) const = 0;
|
virtual bool GetValue(Coin &coin) const = 0;
|
||||||
virtual unsigned int GetValueSize() const = 0;
|
|
||||||
|
|
||||||
virtual bool Valid() const = 0;
|
virtual bool Valid() const = 0;
|
||||||
virtual void Next() = 0;
|
virtual void Next() = 0;
|
||||||
|
|
|
@ -166,11 +166,6 @@ public:
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int GetValueSize() {
|
|
||||||
return piter->value().size();
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class CDBWrapper
|
class CDBWrapper
|
||||||
|
|
|
@ -211,7 +211,6 @@ public:
|
||||||
|
|
||||||
bool GetKey(COutPoint &key) const override;
|
bool GetKey(COutPoint &key) const override;
|
||||||
bool GetValue(Coin &coin) const override;
|
bool GetValue(Coin &coin) const override;
|
||||||
unsigned int GetValueSize() const override;
|
|
||||||
|
|
||||||
bool Valid() const override;
|
bool Valid() const override;
|
||||||
void Next() override;
|
void Next() override;
|
||||||
|
@ -257,11 +256,6 @@ bool CCoinsViewDBCursor::GetValue(Coin &coin) const
|
||||||
return pcursor->GetValue(coin);
|
return pcursor->GetValue(coin);
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int CCoinsViewDBCursor::GetValueSize() const
|
|
||||||
{
|
|
||||||
return pcursor->GetValueSize();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool CCoinsViewDBCursor::Valid() const
|
bool CCoinsViewDBCursor::Valid() const
|
||||||
{
|
{
|
||||||
return keyTmp.first == DB_COIN;
|
return keyTmp.first == DB_COIN;
|
||||||
|
|
Loading…
Add table
Reference in a new issue