Skip to content

Commit

Permalink
#1941: remove getGlobalEpoch
Browse files Browse the repository at this point in the history
  • Loading branch information
stmcgovern authored and cz4rs committed Sep 28, 2022
1 parent cf747c8 commit 79c9511
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/vt/messaging/active.cc
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void ActiveMessenger::startup() {
#endif
}

/*virtual*/ ActiveMessenger::~ActiveMessenger() {};
/*virtual*/ ActiveMessenger::~ActiveMessenger() {}

trace::TraceEventIDType ActiveMessenger::makeTraceCreationSend(
HandlerType const handler, ByteType serialized_msg_size, bool is_bcast
Expand Down
1 change: 0 additions & 1 deletion src/vt/termination/termination.h
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,6 @@ struct TerminationDetector :

public:
inline EpochType getEpoch() const;
inline EpochType getGlobalEpoch() const;
inline void pushEpoch(EpochType const& epoch);
inline EpochType popEpoch(EpochType const& epoch = no_epoch);

Expand Down
6 changes: 1 addition & 5 deletions src/vt/termination/termination.impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,13 @@ inline void TerminationDetector::produceConsume(
}
}

inline EpochType TerminationDetector::getGlobalEpoch() const {
inline EpochType TerminationDetector::getEpoch() const {
vtAssertInfo(
epoch_stack_.size() > 0, "Epoch stack size must be greater than zero",
epoch_stack_.size()
);
return epoch_stack_.size() ? EpochType{epoch_stack_.top()} : term::any_epoch_sentinel;
}

inline void TerminationDetector::pushEpoch(EpochType const& epoch) {
/*
* pushEpoch(epoch) pushes any epoch onto the local stack iff epoch !=
Expand Down Expand Up @@ -181,9 +180,6 @@ inline EpochType TerminationDetector::popEpoch(EpochType const& epoch) {
}
}

inline EpochType TerminationDetector::getEpoch() const {
return getGlobalEpoch();
}

}} /* end namespace vt::term */

Expand Down

0 comments on commit 79c9511

Please sign in to comment.