Removed some unneeded code
This commit is contained in:
parent
e78af146e8
commit
847a5fae3d
1 changed files with 7 additions and 18 deletions
|
|
@ -501,7 +501,7 @@ void related_posts::flush()
|
|||
{
|
||||
if (posts.size() > 0) {
|
||||
foreach (post_t * post, posts) {
|
||||
if (post->xact) {
|
||||
assert(post->xact);
|
||||
foreach (post_t * r_post, post->xact->posts) {
|
||||
post_t::xdata_t& xdata(r_post->xdata());
|
||||
if (! xdata.has_flags(POST_EXT_HANDLED) &&
|
||||
|
|
@ -512,17 +512,6 @@ void related_posts::flush()
|
|||
item_handler<post_t>::operator()(*r_post);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// This code should only be reachable from the "output"
|
||||
// command, since that is the only command which attempts to
|
||||
// output auto or period xacts.
|
||||
post_t::xdata_t& xdata(post->xdata());
|
||||
if (! xdata.has_flags(POST_EXT_HANDLED) &&
|
||||
! post->has_flags(ITEM_GENERATED)) {
|
||||
xdata.add_flags(POST_EXT_HANDLED);
|
||||
item_handler<post_t>::operator()(*post);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue