Remove unused database table (RIPD-755)

This commit is contained in:
seelabs
2015-04-17 06:55:23 -07:00
committed by Tom Ritchford
parent 8377f2516b
commit a7598c5610
6 changed files with 0 additions and 73 deletions

View File

@@ -289,7 +289,6 @@ public:
beast::DeadlineTimer m_sweepTimer;
beast::DeadlineTimer m_entropyTimer;
std::unique_ptr <DatabaseCon> mRpcDB;
std::unique_ptr <DatabaseCon> mTxnDB;
std::unique_ptr <DatabaseCon> mLedgerDB;
std::unique_ptr <DatabaseCon> mWalletDB;
@@ -607,11 +606,6 @@ public:
return m_sntpClient->getOffset (offset);
}
DatabaseCon& getRpcDB ()
{
assert (mRpcDB.get() != nullptr);
return *mRpcDB;
}
DatabaseCon& getTxnDB ()
{
assert (mTxnDB.get() != nullptr);
@@ -637,14 +631,11 @@ public:
//--------------------------------------------------------------------------
bool initSqliteDbs ()
{
assert (mRpcDB.get () == nullptr);
assert (mTxnDB.get () == nullptr);
assert (mLedgerDB.get () == nullptr);
assert (mWalletDB.get () == nullptr);
DatabaseCon::Setup setup = setup_DatabaseCon (getConfig());
mRpcDB = std::make_unique <DatabaseCon> (setup, "rpc.db", RpcDBInit,
RpcDBCount);
mTxnDB = std::make_unique <DatabaseCon> (setup, "transaction.db",
TxnDBInit, TxnDBCount);
mLedgerDB = std::make_unique <DatabaseCon> (setup, "ledger.db",
@@ -653,7 +644,6 @@ public:
WalletDBInit, WalletDBCount);
return
mRpcDB.get() != nullptr &&
mTxnDB.get () != nullptr &&
mLedgerDB.get () != nullptr &&
mWalletDB.get () != nullptr;