Skip to content

Commit

Permalink
#1941: simplify loop
Browse files Browse the repository at this point in the history
  • Loading branch information
stmcgovern committed Sep 21, 2022
1 parent 9e6187a commit 13333c0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/vt/termination/termination.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,8 @@ struct TerminationDetector :

virtual ~TerminationDetector() {
//Pop all extraneous epochs off the stack greater than 1
auto stack_size = epoch_stack_.size();
while (stack_size > 1) {
stack_size = (epoch_stack_.pop(), epoch_stack_.size());
while (epoch_stack_.size() > 1) {
epoch_stack_.pop();
}
// Pop off the last epoch: term::any_epoch_sentinel
auto const ret_epoch = popEpoch(term::any_epoch_sentinel);
Expand Down

0 comments on commit 13333c0

Please sign in to comment.