summaryrefslogtreecommitdiff
path: root/src/xact.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-31 04:50:07 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-31 04:50:07 -0400
commit3909d2678ede154f9a7fe19617973d4daa173c47 (patch)
treeb8d85010bae44f1f4c7020d68e8b840b81da354f /src/xact.cc
parent97a9b42b2c5ef908e0c47ecfd39771a79f8fa8a2 (diff)
downloadfork-ledger-3909d2678ede154f9a7fe19617973d4daa173c47.tar.gz
fork-ledger-3909d2678ede154f9a7fe19617973d4daa173c47.tar.bz2
fork-ledger-3909d2678ede154f9a7fe19617973d4daa173c47.zip
Removed most #if 0 blocks and callout comments
Diffstat (limited to 'src/xact.cc')
-rw-r--r--src/xact.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/xact.cc b/src/xact.cc
index be8c0214..1ab54bdf 100644
--- a/src/xact.cc
+++ b/src/xact.cc
@@ -136,8 +136,6 @@ bool xact_base_t::finalize()
// been set.
if (journal && journal->basket && posts.size() == 1 && ! balance.is_null()) {
- // jww (2008-07-24): Need to make the rest of the code aware of what to do
- // when it sees a generated post.
null_post = new post_t(journal->basket, ITEM_GENERATED);
null_post->_state = (*posts.begin())->_state;
add_post(null_post);
@@ -459,12 +457,10 @@ bool xact_t::valid() const
DEBUG("ledger.validate", "xact_t: ! _date");
return false;
}
-#if 0
if (! journal) {
DEBUG("ledger.validate", "xact_t: ! journal");
return false;
}
-#endif
foreach (post_t * post, posts)
if (post->xact != this || ! post->valid()) {