From: Chandler Carruth Date: Mon, 31 Dec 2012 23:38:28 +0000 (+0000) Subject: Remove an unused method on the Program class. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2bbe46647555cdd05fe0db5f1dd2839330a647b2;p=oota-llvm.git Remove an unused method on the Program class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171332 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/Program.h b/include/llvm/Support/Program.h index 7c9a9510315..42efdb36bdc 100644 --- a/include/llvm/Support/Program.h +++ b/include/llvm/Support/Program.h @@ -44,9 +44,6 @@ namespace sys { Program(); ~Program(); - /// Return process ID of this program. - unsigned GetPid() const; - /// This function executes the program using the \p arguments provided. The /// invoked program will inherit the stdin, stdout, and stderr file /// descriptors, the environment and other configuration settings of the diff --git a/lib/Support/Unix/Program.inc b/lib/Support/Unix/Program.inc index bd75046aa9a..aac52414f11 100644 --- a/lib/Support/Unix/Program.inc +++ b/lib/Support/Unix/Program.inc @@ -47,11 +47,6 @@ Program::Program() : Data_(0) {} Program::~Program() {} -unsigned Program::GetPid() const { - uint64_t pid = reinterpret_cast(Data_); - return static_cast(pid); -} - // This function just uses the PATH environment variable to find the program. Path Program::FindProgramByName(const std::string& progName) { diff --git a/lib/Support/Windows/Program.inc b/lib/Support/Windows/Program.inc index b54608093b1..dc214b82c07 100644 --- a/lib/Support/Windows/Program.inc +++ b/lib/Support/Windows/Program.inc @@ -43,11 +43,6 @@ Program::~Program() { } } -unsigned Program::GetPid() const { - Win32ProcessInfo* wpi = reinterpret_cast(Data_); - return wpi->dwProcessId; -} - // This function just uses the PATH environment variable to find the program. Path Program::FindProgramByName(const std::string& progName) {