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
This commit is contained in:
Chandler Carruth 2012-12-31 23:38:28 +00:00
parent f5867ab717
commit 2bbe466475
3 changed files with 0 additions and 13 deletions

View 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

View 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) {

View 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) {