diff --git a/src/Ledger.cpp b/src/Ledger.cpp index 71a82231dc..1885439f29 100644 --- a/src/Ledger.cpp +++ b/src/Ledger.cpp @@ -211,18 +211,6 @@ RippleState::pointer Ledger::accessRippleState(const uint256& uNode) return boost::make_shared(sle); } -bool Ledger::addTransaction(const Transaction::pointer& trans) -{ // low-level - just add to table - assert(!mAccepted); - assert(trans->getID().isNonZero()); - Serializer s; - trans->getSTransaction()->add(s); - SHAMapItem::pointer item = boost::make_shared(trans->getID(), s.peekData()); - if (!mTransactionMap->addGiveItem(item, true, false)) // FIXME: TX metadata - return false; - return true; -} - bool Ledger::addTransaction(const uint256& txID, const Serializer& txn) { // low-level - just add to table SHAMapItem::pointer item = boost::make_shared(txID, txn.peekData()); diff --git a/src/Ledger.h b/src/Ledger.h index c671a57bf2..a0a274e94e 100644 --- a/src/Ledger.h +++ b/src/Ledger.h @@ -82,7 +82,6 @@ private: protected: - bool addTransaction(const Transaction::pointer&); bool addTransaction(const uint256& id, const Serializer& txn); static Ledger::pointer getSQL(const std::string& sqlStatement);