From c5c2027624de16d11e697d6d342e23b0aa5bb23f Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 1 Nov 2009 00:20:23 -0400 Subject: Fix to xact_t::valid() --- src/xact.h | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'src/xact.h') diff --git a/src/xact.h b/src/xact.h index b3cad6da..59ddd1bc 100644 --- a/src/xact.h +++ b/src/xact.h @@ -79,7 +79,9 @@ public: virtual bool remove_post(post_t * post); virtual bool finalize(); - virtual bool valid() const = 0; + virtual bool valid() const { + return true; + } #if defined(HAVE_BOOST_SERIALIZATION) private: @@ -179,9 +181,6 @@ public: } virtual void extend_xact(xact_base_t& xact, bool post); - virtual bool valid() const { - return true; - } #if defined(HAVE_BOOST_SERIALIZATION) private: @@ -262,14 +261,6 @@ class period_xact_t : public xact_base_t TRACE_DTOR(period_xact_t); } - virtual bool valid() const { - if (! period.is_valid()) { - DEBUG("ledger.validate", "period_xact_t: ! period.is_valid()"); - return false; - } - return true; - } - #if defined(HAVE_BOOST_SERIALIZATION) private: /** Serialization. */ -- cgit v1.2.3