From 30cd0e197d9611f4bcaa21c8cbf94ff926d7ae7c Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Wed, 12 Sep 2012 09:18:03 -0700 Subject: [PATCH] Remove dead code that's in my way. --- src/Ledger.cpp | 12 ------------ src/Ledger.h | 1 - 2 files changed, 13 deletions(-) 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);