Skip to content

Commit fb38c6e

Browse files
committed
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 d342424).
1 parent 5884a47 commit fb38c6e

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

src/coins.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ class CCoinsViewCursor
142142

143143
virtual bool GetKey(COutPoint &key) const = 0;
144144
virtual bool GetValue(Coin &coin) const = 0;
145-
virtual unsigned int GetValueSize() const = 0;
146145

147146
virtual bool Valid() const = 0;
148147
virtual void Next() = 0;

src/dbwrapper.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,6 @@ class CDBIterator
166166
}
167167
return true;
168168
}
169-
170-
unsigned int GetValueSize() {
171-
return piter->value().size();
172-
}
173-
174169
};
175170

176171
class CDBWrapper

src/txdb.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ class CCoinsViewDBCursor: public CCoinsViewCursor
211211

212212
bool GetKey(COutPoint &key) const override;
213213
bool GetValue(Coin &coin) const override;
214-
unsigned int GetValueSize() const override;
215214

216215
bool Valid() const override;
217216
void Next() override;
@@ -257,11 +256,6 @@ bool CCoinsViewDBCursor::GetValue(Coin &coin) const
257256
return pcursor->GetValue(coin);
258257
}
259258

260-
unsigned int CCoinsViewDBCursor::GetValueSize() const
261-
{
262-
return pcursor->GetValueSize();
263-
}
264-
265259
bool CCoinsViewDBCursor::Valid() const
266260
{
267261
return keyTmp.first == DB_COIN;

0 commit comments

Comments
 (0)