diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-01 00:20:23 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-01 04:25:23 -0500 |
commit | c5c2027624de16d11e697d6d342e23b0aa5bb23f (patch) | |
tree | 41e0ad703a52b5915127f52c4e3b64aef06daca1 /src/xact.h | |
parent | 3497076e048f4aa9c4bea729d9a4070fe4dcfe66 (diff) | |
download | fork-ledger-c5c2027624de16d11e697d6d342e23b0aa5bb23f.tar.gz fork-ledger-c5c2027624de16d11e697d6d342e23b0aa5bb23f.tar.bz2 fork-ledger-c5c2027624de16d11e697d6d342e23b0aa5bb23f.zip |
Fix to xact_t::valid()
Diffstat (limited to 'src/xact.h')
-rw-r--r-- | src/xact.h | 15 |
1 files changed, 3 insertions, 12 deletions
@@ -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. */ |