Skip to content

Commit

Permalink
#1999: drop variable that's only ever assigned but not read
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilMiller committed Oct 18, 2022
1 parent 8315da3 commit daab9f9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/unit/collection/test_collection_group.extended.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
namespace vt { namespace tests { namespace unit {

static int32_t elem_counter = 0;
static bool handler_executed = false;

struct MyReduceMsg : collective::ReduceTMsg<int> {
explicit MyReduceMsg(int const in_num)
Expand Down Expand Up @@ -87,7 +86,6 @@ struct ColA : Collection<ColA,Index1D> {
void memberHandler(TestDataMsg* msg) {
EXPECT_EQ(msg->value_, theContext()->getNode());
--elem_counter;
handler_executed = true;
}

virtual ~ColA() {
Expand All @@ -104,12 +102,10 @@ struct ColA : Collection<ColA,Index1D> {
void colHanlder(
ColA::TestDataMsg* msg, typename ColA::TestDataMsg::CollectionType* type) {
--elem_counter;
handler_executed = true;
}

template <typename f>
void runBcastTestHelper(f&& func) {
handler_executed = false;
runInEpochCollective([=]{
func();
});
Expand Down

0 comments on commit daab9f9

Please sign in to comment.