Remove WalletDatabase::Create, CreateMock, and CreateDummy
These are superseded by CreateWalletDatabase, CreateMockWalletDatabase, and CreateDummyWalletDatabase
This commit is contained in:
1 parent
d6045d0ac6
commit
da7a83c5ee
1 file changed
-19
@@ -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
|
/** Rewrite the entire database on disk, with the exception of key pszSkip if non-zero
|
||||||
*/
|
*/
|
||||||
bool Rewrite(const char* pszSkip=nullptr);
|
bool Rewrite(const char* pszSkip=nullptr);
|
||||||
|
|||||||
Reference in new issue
Block a user