diff --git a/src/vt/collective/barrier/barrier.cc b/src/vt/collective/barrier/barrier.cc index ad8e2a5f64..d54ebab013 100644 --- a/src/vt/collective/barrier/barrier.cc +++ b/src/vt/collective/barrier/barrier.cc @@ -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); @@ -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( diff --git a/src/vt/collective/barrier/barrier.h b/src/vt/collective/barrier/barrier.h index 2d2fd0f32c..6ffe0c12be 100644 --- a/src/vt/collective/barrier/barrier.h +++ b/src/vt/collective/barrier/barrier.h @@ -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 ); /**