aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2020-06-17 12:32:23 -0400
committerAndrew Chow <achow101-github@achow101.com>2020-06-17 14:13:17 -0400
commitda7a83c5ee6a51ff4c3eb35dbd447a310c4a0387 (patch)
tree55c09c639db7bb2bc90d0e629a3caba298458d63
parentd6045d0ac615b5984b72e83cb25aa8a245a177a0 (diff)
Remove WalletDatabase::Create, CreateMock, and CreateDummy
These are superseded by CreateWalletDatabase, CreateMockWalletDatabase, and CreateDummyWalletDatabase
-rw-r--r--src/wallet/bdb.h19
1 files changed, 0 insertions, 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<BerkeleyDatabase> Create(const fs::path& path)
- {
- std::string filename;
- return MakeUnique<BerkeleyDatabase>(GetWalletEnv(path, filename), std::move(filename));
- }
-
- /** Return object for accessing dummy database with no read/write capabilities. */
- static std::unique_ptr<BerkeleyDatabase> CreateDummy()
- {
- return MakeUnique<BerkeleyDatabase>();
- }
-
- /** Return object for accessing temporary in-memory database. */
- static std::unique_ptr<BerkeleyDatabase> CreateMock()
- {
- return MakeUnique<BerkeleyDatabase>(std::make_shared<BerkeleyEnvironment>(), "");
- }
-
/** Rewrite the entire database on disk, with the exception of key pszSkip if non-zero
*/
bool Rewrite(const char* pszSkip=nullptr);