summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-12-15 12:20:54 (GMT)
committerBrad King <brad.king@kitware.com>2018-01-08 17:55:00 (GMT)
commit1138feb38f4e6d259ded23312b7f0f2184ac816a (patch)
tree2abd55c1d0063e707387e11709552d52d7d896c0 /Source
parent4ffb0f8b45a5abd51a04a399461c9096019a87f8 (diff)
downloadCMake-1138feb38f4e6d259ded23312b7f0f2184ac816a.zip
CMake-1138feb38f4e6d259ded23312b7f0f2184ac816a.tar.gz
CMake-1138feb38f4e6d259ded23312b7f0f2184ac816a.tar.bz2
cmCTest: Remove unused member LastStopTimeout
This member was added by commit v2.8.2~285 (Better detection of stop_time being passed, 2010-03-19), but its logic has no effect. The member is only used for comparison against a value to which it was just assigned.
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/cmCTestRunTest.cxx4
-rw-r--r--Source/cmCTest.cxx1
-rw-r--r--Source/cmCTest.h2
3 files changed, 1 insertions, 6 deletions
diff --git a/Source/CTest/cmCTestRunTest.cxx b/Source/CTest/cmCTestRunTest.cxx
index dbdefae..0a27138 100644
--- a/Source/CTest/cmCTestRunTest.cxx
+++ b/Source/CTest/cmCTestRunTest.cxx
@@ -649,10 +649,8 @@ std::chrono::duration<double> cmCTestRunTest::ResolveTimeout()
auto stop_timeout =
(stop_time - std::chrono::system_clock::from_time_t(current_time)) %
std::chrono::hours(24);
- this->CTest->LastStopTimeout = stop_timeout;
- if (stop_timeout <= std::chrono::duration<double>::zero() ||
- stop_timeout > this->CTest->LastStopTimeout) {
+ if (stop_timeout <= std::chrono::duration<double>::zero()) {
cmCTestLog(this->CTest, ERROR_MESSAGE, "The stop time has been passed. "
"Stopping all tests."
<< std::endl);
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 26e1dcb..339bf5a 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -279,7 +279,6 @@ cmCTest::cmCTest()
this->InteractiveDebugMode = true;
this->TimeOut = std::chrono::duration<double>::zero();
this->GlobalTimeout = std::chrono::duration<double>::zero();
- this->LastStopTimeout = std::chrono::hours(24);
this->CompressXMLFiles = false;
this->ScheduleType.clear();
this->StopTime.clear();
diff --git a/Source/cmCTest.h b/Source/cmCTest.h
index 23d71cb..e1cf25e 100644
--- a/Source/cmCTest.h
+++ b/Source/cmCTest.h
@@ -512,8 +512,6 @@ private:
std::chrono::duration<double> GlobalTimeout;
- std::chrono::duration<double> LastStopTimeout;
-
int MaxTestNameWidth;
int ParallelLevel;