Skip to content

Commit

Permalink
#2264: remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed May 28, 2024
1 parent 13c5b76 commit 38de7db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
8 changes: 2 additions & 6 deletions src/vt/collective/barrier/barrier.cc
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,7 @@ Barrier::BarrierStateType& Barrier::insertFindBarrier(
return iter->second;
}

void Barrier::removeBarrier(
bool const& is_named,
[[maybe_unused]] bool const& is_wait,
BarrierType const& barrier
) {
void Barrier::removeBarrier(bool const& is_named, BarrierType const& barrier) {
auto& state = is_named ? named_barrier_state_ : unnamed_barrier_state_;

auto iter = state.find(barrier);
Expand Down Expand Up @@ -147,7 +143,7 @@ void Barrier::waitBarrier(
"waitBarrier: released: named={}, barrier={}\n", is_named, barrier
);

removeBarrier(is_named, is_wait, barrier);
removeBarrier(is_named, barrier);
}

void Barrier::contBarrier(
Expand Down
3 changes: 1 addition & 2 deletions src/vt/collective/barrier/barrier.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,10 @@ struct Barrier : virtual collective::tree::Tree {
* \internal \brief Remove the state of a barrier
*
* \param[in] is_named whether the barrier is named
* \param[in] is_wait whether the barrier is of waiting type
* \param[in] barrier the barrier ID
*/
void removeBarrier(
bool const& is_named, bool const& is_wait, BarrierType const& barrier
bool const& is_named, BarrierType const& barrier
);

/**
Expand Down

0 comments on commit 38de7db

Please sign in to comment.