aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/bdb.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2020-05-28 17:30:50 -0400
committerAndrew Chow <achow101-github@achow101.com>2020-07-29 12:30:23 -0400
commitda039d2a915097c23f2b46e063042409bdc3c4f4 (patch)
treebb5d0c259810e2093c6e787ab65b5b01e893b55e /src/wallet/bdb.h
parent0103d6434ea9d155259b40575008239a3762d6f7 (diff)
downloadbitcoin-da039d2a915097c23f2b46e063042409bdc3c4f4.tar.xz
Remove BDB dummy databases
Diffstat (limited to 'src/wallet/bdb.h')
-rw-r--r--src/wallet/bdb.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/wallet/bdb.h b/src/wallet/bdb.h
index 982423f00e..75546924e8 100644
--- a/src/wallet/bdb.h
+++ b/src/wallet/bdb.h
@@ -98,10 +98,7 @@ class BerkeleyBatch;
class BerkeleyDatabase : public WalletDatabase
{
public:
- /** Create dummy DB handle */
- BerkeleyDatabase() : WalletDatabase(), env(nullptr)
- {
- }
+ BerkeleyDatabase() = delete;
/** Create DB handle to real database */
BerkeleyDatabase(std::shared_ptr<BerkeleyEnvironment> env, std::string filename) :
@@ -166,14 +163,6 @@ public:
/** Make a BerkeleyBatch connected to this database */
std::unique_ptr<DatabaseBatch> MakeBatch(const char* mode = "r+", bool flush_on_close = true) override;
-
-private:
-
- /** Return whether this database handle is a dummy for testing.
- * Only to be used at a low level, application should ideally not care
- * about this.
- */
- bool IsDummy() const { return env == nullptr; }
};
/** RAII class that provides access to a Berkeley database */