Skip to content

Commit

Permalink
#2264: remove unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed May 28, 2024
1 parent d8b6904 commit 72317d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/vt/termination/dijkstra-scholten/comm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ StateDS::getTerminator(EpochType const& epoch) {
/*static*/ void StateDS::requestAckHan(AckMsg* msg) {
auto const epoch = msg->getEpoch();
auto term = getTerminator(epoch);
term->needAck(msg->getNode(),msg->getCount());
term->needAck();
}

/*static*/ void StateDS::acknowledgeHan(AckMsg* msg) {
Expand Down
5 changes: 1 addition & 4 deletions src/vt/termination/dijkstra-scholten/ds.cc
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,7 @@ void TermDS<CommType>::msgProcessed(NodeType predecessor, CountType count) {
}

template <typename CommType>
void TermDS<CommType>::needAck(
[[maybe_unused]] NodeType const predecessor,
[[maybe_unused]] CountType const count
) {
void TermDS<CommType>::needAck() {
vtAssertInfo(
5 && (C == processedSum - (ackedArbitrary + ackedParent)),
"DS-invariant", C, D, processedSum, ackedArbitrary,
Expand Down
2 changes: 1 addition & 1 deletion src/vt/termination/dijkstra-scholten/ds.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ struct TermDS : EpochDependency, EpochLabel {
void gotAck(CountType count);
void doneSending();
void msgProcessed(NodeType predecessor, CountType count);
void needAck(NodeType const predecessor, CountType const count);
void needAck();
void tryAck();
void terminated();
bool hasParent();
Expand Down

0 comments on commit 72317d9

Please sign in to comment.