diff options
author | Wladimir J. van der Laan <laanwj@protonmail.com> | 2020-07-09 15:07:56 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@protonmail.com> | 2020-07-09 15:11:04 +0200 |
commit | 21028ce9ffb8ebbd00f46f281a28d0f8e54b5aa5 (patch) | |
tree | 8f469f7365f91860ee9403cfece4e218f31c435a /src | |
parent | 64bf5d64dfbfc438f7e944f6853c7e4c92d00650 (diff) | |
parent | 4b5ac258812a1e8848862689ff333587cf274892 (diff) |
Merge #19468: refactor: Drop unused CDBWrapper methods
4b5ac258812a1e8848862689ff333587cf274892 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 4b5ac258812a1e8848862689ff333587cf274892.
laanwj:
ACK 4b5ac258812a1e8848862689ff333587cf274892
Tree-SHA512: 06115c59e75995d496173a64ceea1b9bb1b4fe3eac8bf4f59df68b87b112b5b3e8065298dcd5c4c7408544f76ee62922325acc2208619d830fd5dbb420cdda5c
Diffstat (limited to 'src')
-rw-r--r-- | src/dbwrapper.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/dbwrapper.h b/src/dbwrapper.h index 116d7d8679..215b033708 100644 --- a/src/dbwrapper.h +++ b/src/dbwrapper.h @@ -292,18 +292,6 @@ public: // Get an estimate of LevelDB memory usage (in bytes). size_t DynamicMemoryUsage() const; - // not available for LevelDB; provide for compatibility with BDB - bool Flush() - { - return true; - } - - bool Sync() - { - CDBBatch batch(*this); - return WriteBatch(batch, true); - } - CDBIterator *NewIterator() { return new CDBIterator(*this, pdb->NewIterator(iteroptions)); |