Skip to content

Commit

Permalink
Remove WalletDatabase::Create, CreateMock, and CreateDummy
Browse files Browse the repository at this point in the history
These are superseded by CreateWalletDatabase, CreateMockWalletDatabase,
and CreateDummyWalletDatabase
  • Loading branch information
achow101 committed Jun 17, 2020
1 parent d6045d0 commit da7a83c
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/wallet/bdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,25 +120,6 @@ class BerkeleyDatabase
}
}

/** 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);
Expand Down

0 comments on commit da7a83c

Please sign in to comment.