From 6b079cb951985b1bfbc075996644c93a529bfbd2 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Tue, 17 Jul 2012 15:55:27 -0700 Subject: [PATCH] Cleanup. --- src/Ledger.cpp | 5 ----- src/Ledger.h | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Ledger.cpp b/src/Ledger.cpp index ef85985e39..aa279f8a46 100644 --- a/src/Ledger.cpp +++ b/src/Ledger.cpp @@ -230,11 +230,6 @@ bool Ledger::addTransaction(const uint256& txID, const Serializer& txn) return true; } -bool Ledger::hasTransaction(const uint256& transID) const -{ - return mTransactionMap->hasItem(transID); -} - Transaction::pointer Ledger::getTransaction(const uint256& transID) const { SHAMapItem::pointer item = mTransactionMap->peekItem(transID); diff --git a/src/Ledger.h b/src/Ledger.h index 5ba21b74fc..e08100ac89 100644 --- a/src/Ledger.h +++ b/src/Ledger.h @@ -151,7 +151,7 @@ public: bool isAcquiringAS(void); // Transaction Functions - bool hasTransaction(const uint256& TransID) const; + bool hasTransaction(const uint256& TransID) const { return mTransactionMap->hasItem(TransID); } Transaction::pointer getTransaction(const uint256& transID) const; // high-level functions