Преглед на файлове

Merge topic 'remove-unused-Command-member'

1aa4f97c97 cmCTestGenericHandler: Remove unused Command member

Acked-by: Kitware Robot <[email protected]>
Merge-request: !6106
Brad King преди 4 години
родител
ревизия
2ee55f9718
променени са 2 файла, в които са добавени 0 реда и са изтрити 5 реда
  1. 0 4
      Source/CTest/cmCTestGenericHandler.h
  2. 0 1
      Source/CTest/cmCTestUpdateCommand.cxx

+ 0 - 4
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;
 };

+ 0 - 1
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;