Skip to content

Commit 21028ce

Browse files
committed
Merge #19468: refactor: Drop unused CDBWrapper methods
4b5ac25 Drop unused CDBWrapper methods (Hennadii Stepanov) Pull request description: `CDBWrapper::Flush()` and `CDBWrapper::Sync()` are not used in the code. ACKs for top commit: promag: ACK 4b5ac25. laanwj: ACK 4b5ac25 Tree-SHA512: 06115c59e75995d496173a64ceea1b9bb1b4fe3eac8bf4f59df68b87b112b5b3e8065298dcd5c4c7408544f76ee62922325acc2208619d830fd5dbb420cdda5c
2 parents 64bf5d6 + 4b5ac25 commit 21028ce

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/dbwrapper.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -292,18 +292,6 @@ class CDBWrapper
292292
// Get an estimate of LevelDB memory usage (in bytes).
293293
size_t DynamicMemoryUsage() const;
294294

295-
// not available for LevelDB; provide for compatibility with BDB
296-
bool Flush()
297-
{
298-
return true;
299-
}
300-
301-
bool Sync()
302-
{
303-
CDBBatch batch(*this);
304-
return WriteBatch(batch, true);
305-
}
306-
307295
CDBIterator *NewIterator()
308296
{
309297
return new CDBIterator(*this, pdb->NewIterator(iteroptions));

0 commit comments

Comments
 (0)