summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryon Bean <bryon.bean@kitware.com>2017-10-23 12:16:45 (GMT)
committerBrad King <brad.king@kitware.com>2018-01-10 15:19:14 (GMT)
commit5238e6db70d275e42048479b737781fc97d82ea1 (patch)
tree2091c28a1ab5a16099a728bb2135a959be668709
parentc13b68e61f3e89f9f52834c46a65fc7192ceb318 (diff)
downloadCMake-5238e6db70d275e42048479b737781fc97d82ea1.zip
CMake-5238e6db70d275e42048479b737781fc97d82ea1.tar.gz
CMake-5238e6db70d275e42048479b737781fc97d82ea1.tar.bz2
cmProcess: Remove unused ReportStatus method
-rw-r--r--Source/CTest/cmProcess.cxx59
-rw-r--r--Source/CTest/cmProcess.h2
2 files changed, 0 insertions, 61 deletions
diff --git a/Source/CTest/cmProcess.cxx b/Source/CTest/cmProcess.cxx
index 0db66c3..a599454 100644
--- a/Source/CTest/cmProcess.cxx
+++ b/Source/CTest/cmProcess.cxx
@@ -3,7 +3,6 @@
#include "cmProcess.h"
#include "cmProcessOutput.h"
-#include <iostream>
cmProcess::cmProcess()
{
@@ -166,64 +165,6 @@ int cmProcess::GetProcessStatus()
return cmsysProcess_GetState(this->Process);
}
-int cmProcess::ReportStatus()
-{
- int result = 1;
- switch (cmsysProcess_GetState(this->Process)) {
- case cmsysProcess_State_Starting: {
- std::cerr << "cmProcess: Never started " << this->Command
- << " process.\n";
- } break;
- case cmsysProcess_State_Error: {
- std::cerr << "cmProcess: Error executing " << this->Command
- << " process: " << cmsysProcess_GetErrorString(this->Process)
- << "\n";
- } break;
- case cmsysProcess_State_Exception: {
- std::cerr << "cmProcess: " << this->Command
- << " process exited with an exception: ";
- switch (cmsysProcess_GetExitException(this->Process)) {
- case cmsysProcess_Exception_None: {
- std::cerr << "None";
- } break;
- case cmsysProcess_Exception_Fault: {
- std::cerr << "Segmentation fault";
- } break;
- case cmsysProcess_Exception_Illegal: {
- std::cerr << "Illegal instruction";
- } break;
- case cmsysProcess_Exception_Interrupt: {
- std::cerr << "Interrupted by user";
- } break;
- case cmsysProcess_Exception_Numerical: {
- std::cerr << "Numerical exception";
- } break;
- case cmsysProcess_Exception_Other: {
- std::cerr << "Unknown";
- } break;
- }
- std::cerr << "\n";
- } break;
- case cmsysProcess_State_Executing: {
- std::cerr << "cmProcess: Never terminated " << this->Command
- << " process.\n";
- } break;
- case cmsysProcess_State_Exited: {
- result = cmsysProcess_GetExitValue(this->Process);
- std::cerr << "cmProcess: " << this->Command
- << " process exited with code " << result << "\n";
- } break;
- case cmsysProcess_State_Expired: {
- std::cerr << "cmProcess: killed " << this->Command
- << " process due to timeout.\n";
- } break;
- case cmsysProcess_State_Killed: {
- std::cerr << "cmProcess: killed " << this->Command << " process.\n";
- } break;
- }
- return result;
-}
-
void cmProcess::ChangeTimeout(std::chrono::duration<double> t)
{
this->Timeout = t;
diff --git a/Source/CTest/cmProcess.h b/Source/CTest/cmProcess.h
index f3b0bd7..32c4c74 100644
--- a/Source/CTest/cmProcess.h
+++ b/Source/CTest/cmProcess.h
@@ -32,8 +32,6 @@ public:
// return the process status
int GetProcessStatus();
- // Report the status of the program
- int ReportStatus();
int GetId() { return this->Id; }
void SetId(int id) { this->Id = id; }
int GetExitValue() { return this->ExitValue; }