summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2021-03-28 01:18:09 (GMT)
committerCraig Scott <craig.scott@crascit.com>2021-05-08 06:32:43 (GMT)
commit1aa4f97c9737fa077d2279c422f68ac6facde782 (patch)
treec451864d7b1e7b955b1b341a70b8b5255ae4bceb /Source
parent8146fcddc013d7b395f9c4eb9ca48c7de4618e84 (diff)
downloadCMake-1aa4f97c9737fa077d2279c422f68ac6facde782.zip
CMake-1aa4f97c9737fa077d2279c422f68ac6facde782.tar.gz
CMake-1aa4f97c9737fa077d2279c422f68ac6facde782.tar.bz2
cmCTestGenericHandler: Remove unused Command member
This was causing a cppcheck warning about an uninitialized member in the constructor. Since nothing was using it, remove it.
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/cmCTestGenericHandler.h4
-rw-r--r--Source/CTest/cmCTestUpdateCommand.cxx1
2 files changed, 0 insertions, 5 deletions
diff --git a/Source/CTest/cmCTestGenericHandler.h b/Source/CTest/cmCTestGenericHandler.h
index 6f44545..e846fd9 100644
--- a/Source/CTest/cmCTestGenericHandler.h
+++ b/Source/CTest/cmCTestGenericHandler.h
@@ -13,7 +13,6 @@
#include "cmCTest.h"
#include "cmSystemTools.h"
-class cmCTestCommand;
class cmGeneratedFileStream;
class cmMakefile;
@@ -107,8 +106,6 @@ public:
void AddMultiOption(const std::string& optionName, const std::string& value);
std::vector<std::string> GetMultiOption(const std::string& op) const;
- void SetCommand(cmCTestCommand* command) { this->Command = command; }
-
void SetSubmitIndex(int idx) { this->SubmitIndex = idx; }
int GetSubmitIndex() { return this->SubmitIndex; }
@@ -134,6 +131,5 @@ protected:
t_StringToMultiString PersistentMultiOptions;
t_StringToString LogFileNames;
- cmCTestCommand* Command;
int SubmitIndex;
};
diff --git a/Source/CTest/cmCTestUpdateCommand.cxx b/Source/CTest/cmCTestUpdateCommand.cxx
index 0ba2c41..797cb01 100644
--- a/Source/CTest/cmCTestUpdateCommand.cxx
+++ b/Source/CTest/cmCTestUpdateCommand.cxx
@@ -75,7 +75,6 @@ cmCTestGenericHandler* cmCTestUpdateCommand::InitializeHandler()
cmCTestUpdateHandler* handler = this->CTest->GetUpdateHandler();
handler->Initialize();
- handler->SetCommand(this);
if (source_dir.empty()) {
this->SetError("source directory not specified. Please use SOURCE tag");
return nullptr;