summaryrefslogtreecommitdiffstats
path: root/Source/CTest
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/CTest
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/CTest')
-rw-r--r--Source/CTest/cmCTestRunTest.cxx4
1 files changed, 1 insertions, 3 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);