diff options
author | TheCharlatan <seb.kung@gmail.com> | 2023-07-29 10:04:50 +0200 |
---|---|---|
committer | TheCharlatan <seb.kung@gmail.com> | 2023-08-05 10:42:59 +0200 |
commit | 586448888b72f7c87db4dcd30fc4e4044afae13b (patch) | |
tree | ffbc735cb1f4ba441b00be4c717c91f179e2fb8b /src/dbwrapper.h | |
parent | dede0eef7adb7413f62f5abd68cac8e01635ba4a (diff) | |
download | bitcoin-586448888b72f7c87db4dcd30fc4e4044afae13b.tar.xz |
refactor: Move HandleError to dbwrapper implementation
Make it a static function in dbwrapper.cpp, since it is not used
elsewhere and when left in the header, would expose a leveldb type.
The context of this commit is an effort to decouple the dbwrapper header
file from leveldb includes. To this end, the includes are moved to the
dbwrapper implementation file. This is done as part of the kernel
project to reduce the number of required includes for users of the
kernel.
Diffstat (limited to 'src/dbwrapper.h')
-rw-r--r-- | src/dbwrapper.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/dbwrapper.h b/src/dbwrapper.h index 5b9ff6ea91..9756207aec 100644 --- a/src/dbwrapper.h +++ b/src/dbwrapper.h @@ -24,7 +24,6 @@ #include <vector> namespace leveldb { class Env; -class Status; } static const size_t DBWRAPPER_PREALLOC_KEY_SIZE = 64; @@ -67,10 +66,6 @@ class CDBWrapper; */ namespace dbwrapper_private { -/** Handle database error by throwing dbwrapper_error exception. - */ -void HandleError(const leveldb::Status& status); - /** Work around circular dependency, as well as for testing in dbwrapper_tests. * Database obfuscation should be considered an implementation detail of the * specific database. |