From 9ee3a26e8b8d83e471d8962f2bd88e9b23df5fa3 Mon Sep 17 00:00:00 2001 From: Sandboxed API Team Date: Wed, 2 Feb 2022 09:56:33 -0800 Subject: [PATCH] Delete deprecated `::sandbox2::Sandbox2::GetPid` and its remaining call sites. PiperOrigin-RevId: 425910086 Change-Id: I2938ce589e83b5441c084994edde6a22c2007642 --- sandboxed_api/sandbox.cc | 2 +- sandboxed_api/sandbox2/sandbox2.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/sandboxed_api/sandbox.cc b/sandboxed_api/sandbox.cc index 7c4a843..d49f3ed 100644 --- a/sandboxed_api/sandbox.cc +++ b/sandboxed_api/sandbox.cc @@ -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(comms_); diff --git a/sandboxed_api/sandbox2/sandbox2.h b/sandboxed_api/sandbox2/sandbox2.h index 288e123..3361c47 100644 --- a/sandboxed_api/sandbox2/sandbox2.h +++ b/sandboxed_api/sandbox2/sandbox2.h @@ -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.