Delete deprecated ::sandbox2::Sandbox2::GetPid and its remaining call sites.

PiperOrigin-RevId: 425910086
Change-Id: I2938ce589e83b5441c084994edde6a22c2007642
This commit is contained in:
Sandboxed API Team 2022-02-02 09:56:33 -08:00 committed by Copybara-Service
parent 570898542b
commit 9ee3a26e8b
2 changed files with 1 additions and 4 deletions

View File

@ -203,7 +203,7 @@ absl::Status Sandbox::Init() {
auto res = s2_->RunAsync();
comms_ = s2_->comms();
pid_ = s2_->GetPid();
pid_ = s2_->pid();
rpc_channel_ = absl::make_unique<RPCChannel>(comms_);

View File

@ -107,9 +107,6 @@ class Sandbox2 final {
void set_walltime_limit(absl::Duration limit) const;
// Returns the process id inside the executor.
ABSL_DEPRECATED("Use pid() instead")
pid_t GetPid() { return this->pid(); }
pid_t pid() const { return monitor_ != nullptr ? monitor_->pid_ : -1; }
// Gets the comms inside the executor.