Skip to content

Commit c3aab97

Browse files
fanquakevijaydasmp
authored andcommitted
Merge bitcoin#27665: walletdb: Remove unused CreateMockWalletDatabase
0282b21 walletdb: Remove unused CreateMockWalletDatabase (Andrew Chow) Pull request description: This has been superseded by the MockableDatabase. Remove to avoid confusion as to which type of mock database to use for testing. I thought this was included in bitcoin#26715, maybe it got lost in a rebase. ACKs for top commit: furszy: utACK 0282b21 brunoerg: crACK 0282b21 Tree-SHA512: 18445c4d8a4e2609ef7471c6d75297f43694b79e768f6c993a5addb1dc0e88bd12bac263c9d8e903d828ddf6bf50434f9e2f72048f4fc528e98fed8ee65123ca
1 parent b5a65c6 commit c3aab97

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/wallet/walletdb.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,13 +1188,3 @@ std::unique_ptr<WalletDatabase> CreateDummyWalletDatabase()
11881188
{
11891189
return std::make_unique<DummyDatabase>();
11901190
}
1191-
1192-
/** Return object for accessing temporary in-memory database. */
1193-
std::unique_ptr<WalletDatabase> CreateMockWalletDatabase()
1194-
{
1195-
#ifdef USE_SQLITE
1196-
return std::make_unique<SQLiteDatabase>("", "", true);
1197-
#elif defined(USE_BDB)
1198-
return std::make_unique<BerkeleyDatabase>(std::make_shared<BerkeleyEnvironment>(), "");
1199-
#endif
1200-
}

src/wallet/walletdb.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,4 @@ bool ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue, st
266266
/** Return object for accessing dummy database with no read/write capabilities. */
267267
std::unique_ptr<WalletDatabase> CreateDummyWalletDatabase();
268268

269-
/** Return object for accessing temporary in-memory database. */
270-
std::unique_ptr<WalletDatabase> CreateMockWalletDatabase();
271-
272269
#endif // BITCOIN_WALLET_WALLETDB_H

0 commit comments

Comments
 (0)