diff options
author | Andrew Chow <achow101-github@achow101.com> | 2020-06-17 12:32:23 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2020-06-17 14:13:17 -0400 |
commit | da7a83c5ee6a51ff4c3eb35dbd447a310c4a0387 (patch) | |
tree | 55c09c639db7bb2bc90d0e629a3caba298458d63 /src/wallet | |
parent | d6045d0ac615b5984b72e83cb25aa8a245a177a0 (diff) |
Remove WalletDatabase::Create, CreateMock, and CreateDummy
These are superseded by CreateWalletDatabase, CreateMockWalletDatabase,
and CreateDummyWalletDatabase
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/bdb.h | 19 |
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); |