From da7a83c5ee6a51ff4c3eb35dbd447a310c4a0387 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Wed, 17 Jun 2020 12:32:23 -0400 Subject: [PATCH] Remove WalletDatabase::Create, CreateMock, and CreateDummy These are superseded by CreateWalletDatabase, CreateMockWalletDatabase, and CreateDummyWalletDatabase --- src/wallet/bdb.h | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/wallet/bdb.h b/src/wallet/bdb.h index 5ed364344b..9bab9ee209 100644 --- a/src/wallet/bdb.h +++ b/src/wallet/bdb.h @@ -120,25 +120,6 @@ public: } } - /** Return object for accessing database at specified path. */ - static std::unique_ptr Create(const fs::path& path) - { - std::string filename; - return MakeUnique(GetWalletEnv(path, filename), std::move(filename)); - } - - /** Return object for accessing dummy database with no read/write capabilities. */ - static std::unique_ptr CreateDummy() - { - return MakeUnique(); - } - - /** Return object for accessing temporary in-memory database. */ - static std::unique_ptr CreateMock() - { - return MakeUnique(std::make_shared(), ""); - } - /** Rewrite the entire database on disk, with the exception of key pszSkip if non-zero */ bool Rewrite(const char* pszSkip=nullptr);