Removed excessive validity check from xact_t::valid

This commit is contained in:
John Wiegley 2009-11-01 06:48:49 -05:00
parent dc2c2c98d4
commit 5ef50f8877

View file

@ -457,10 +457,6 @@ bool xact_t::valid() const
DEBUG("ledger.validate", "xact_t: ! _date");
return false;
}
if (! has_flags(ITEM_GENERATED | ITEM_TEMP) && ! journal) {
DEBUG("ledger.validate", "xact_t: ! journal");
return false;
}
foreach (post_t * post, posts)
if (post->xact != this || ! post->valid()) {