From d6d114f3e8ad7333b9dcf18c9c583e778d334659 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 13 Nov 2023 18:37:14 -0500 Subject: cmCTestMultiProcessHandler: Remove unused members The `TestRunningMap` and `TestFinishMap` members have not been used since commit 44017a4767 (CTest: handle dependent and non dependent test requirements equally, 2013-10-17, v3.0.0-rc1~451^2~7). --- Source/CTest/cmCTestMultiProcessHandler.cxx | 10 ---------- Source/CTest/cmCTestMultiProcessHandler.h | 2 -- 2 files changed, 12 deletions(-) diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx index c4e3759..c80bfff 100644 --- a/Source/CTest/cmCTestMultiProcessHandler.cxx +++ b/Source/CTest/cmCTestMultiProcessHandler.cxx @@ -89,11 +89,6 @@ void cmCTestMultiProcessHandler::SetTests(TestMap& tests, this->Tests = tests; this->Properties = properties; this->Total = this->Tests.size(); - // set test run map to false for all - for (auto const& t : this->Tests) { - this->TestRunningMap[t.first] = false; - this->TestFinishMap[t.first] = false; - } if (!this->CTest->GetShowOnly()) { this->ReadCostData(); this->HasCycles = !this->CheckCycles(); @@ -174,7 +169,6 @@ bool cmCTestMultiProcessHandler::StartTestProcess(int test) cmCTestOptionalLog(this->CTest, HANDLER_VERBOSE_OUTPUT, "test " << test << "\n", this->Quiet); - this->TestRunningMap[test] = true; // mark the test as running // now remove the test itself this->EraseTest(test); this->RunningCount += this->GetProcessorsUsed(test); @@ -662,8 +656,6 @@ void cmCTestMultiProcessHandler::FinishTestProcess( t.second.erase(test); } - this->TestFinishMap[test] = true; - this->TestRunningMap[test] = false; this->WriteCheckpoint(test); this->DeallocateResources(test); this->UnlockResources(test); @@ -1393,8 +1385,6 @@ void cmCTestMultiProcessHandler::RemoveTest(int index) { this->EraseTest(index); this->Properties.erase(index); - this->TestRunningMap[index] = false; - this->TestFinishMap[index] = true; this->Completed++; } diff --git a/Source/CTest/cmCTestMultiProcessHandler.h b/Source/CTest/cmCTestMultiProcessHandler.h index 8c118a6..7b288cf 100644 --- a/Source/CTest/cmCTestMultiProcessHandler.h +++ b/Source/CTest/cmCTestMultiProcessHandler.h @@ -184,8 +184,6 @@ protected: bool StopTimePassed = false; // list of test properties (indices concurrent to the test map) PropertiesMap Properties; - std::map TestRunningMap; - std::map TestFinishMap; std::map TestOutput; std::vector* Passed; std::vector* Failed; -- cgit v0.12