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:
Sebastian Falbesoner 2022-06-21 01:12:07 +02:00
parent 5884a47c36
commit fb38c6e21f
3 changed files with 0 additions and 12 deletions

View file

@ -142,7 +142,6 @@ public:
virtual bool GetKey(COutPoint &key) const = 0;
virtual bool GetValue(Coin &coin) const = 0;
virtual unsigned int GetValueSize() const = 0;
virtual bool Valid() const = 0;
virtual void Next() = 0;

View file

@ -166,11 +166,6 @@ public:
}
return true;
}
unsigned int GetValueSize() {
return piter->value().size();
}
};
class CDBWrapper

View file

@ -211,7 +211,6 @@ public:
bool GetKey(COutPoint &key) const override;
bool GetValue(Coin &coin) const override;
unsigned int GetValueSize() const override;
bool Valid() const override;
void Next() override;
@ -257,11 +256,6 @@ bool CCoinsViewDBCursor::GetValue(Coin &coin) const
return pcursor->GetValue(coin);
}
unsigned int CCoinsViewDBCursor::GetValueSize() const
{
return pcursor->GetValueSize();
}
bool CCoinsViewDBCursor::Valid() const
{
return keyTmp.first == DB_COIN;