Remove an unused method on the Program class.
authorChandler Carruth <chandlerc@gmail.com>
Mon, 31 Dec 2012 23:38:28 +0000 (23:38 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 31 Dec 2012 23:38:28 +0000 (23:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171332 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Program.h
lib/Support/Unix/Program.inc
lib/Support/Windows/Program.inc

index 7c9a9510315860f7234b30fa12ab87f7cf574cc9..42efdb36bdcee454c2733f13413afa2509088872 100644 (file)
@@ -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
index bd75046aa9af3086f09b8d775c9fe9dd00ee0dab..aac52414f11ab521d2b07c0100b9dd01996fd2ca 100644 (file)
@@ -47,11 +47,6 @@ Program::Program() : Data_(0) {}
 
 Program::~Program() {}
 
-unsigned Program::GetPid() const {
-  uint64_t pid = reinterpret_cast<uint64_t>(Data_);
-  return static_cast<unsigned>(pid);
-}
-
 // This function just uses the PATH environment variable to find the program.
 Path
 Program::FindProgramByName(const std::string& progName) {
index b54608093b1b56f6dad7e7816ac3189c86ba84e0..dc214b82c07d7249b101c370c977186461cedb32 100644 (file)
@@ -43,11 +43,6 @@ Program::~Program() {
   }
 }
 
-unsigned Program::GetPid() const {
-  Win32ProcessInfo* wpi = reinterpret_cast<Win32ProcessInfo*>(Data_);
-  return wpi->dwProcessId;
-}
-
 // This function just uses the PATH environment variable to find the program.
 Path
 Program::FindProgramByName(const std::string& progName) {