From 0bbcb495ee01cc343e178a0b1fd375a6967e2ce0 Mon Sep 17 00:00:00 2001 From: Wiktor Garbacz Date: Tue, 2 Feb 2021 06:54:56 -0800 Subject: [PATCH] Remove unneeded Executor ctors absl::Span has an implicit ctor from container types. PiperOrigin-RevId: 355155858 Change-Id: I70aea6b276b5e51f7682cba45bb2d4514cb1bc90 --- sandboxed_api/sandbox2/executor.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/sandboxed_api/sandbox2/executor.h b/sandboxed_api/sandbox2/executor.h index 4010278..03241a6 100644 --- a/sandboxed_api/sandbox2/executor.h +++ b/sandboxed_api/sandbox2/executor.h @@ -54,14 +54,6 @@ class Executor final { SetUpServerSideCommsFd(); } - // As above, but with `const std::vector&` - // Templated to avoid ambiguity with the absl::Span overloads when called - // with brace-initializers. - template - Executor(absl::string_view path, const std::vector& argv, - const std::vector& envp = CopyEnviron()) - : Executor(path, absl::MakeSpan(argv), absl::MakeSpan(envp)) {} - // Executor will own this file-descriptor, so if intend to use it, pass here // dup(fd) instead Executor(int exec_fd, absl::Span argv, @@ -73,14 +65,6 @@ class Executor final { SetUpServerSideCommsFd(); } - // As above, but with `const std::vector&` - // Templated to avoid ambiguity with the absl::Span overloads when called - // with brace-initializers. - template - Executor(int exec_fd, const std::vector& argv, - const std::vector& envp) - : Executor(exec_fd, absl::MakeSpan(argv), absl::MakeSpan(envp)) {} - // Uses a custom ForkServer (which the supplied ForkClient can communicate // with), which knows how to fork (or even execute) new sandboxed processes // (hence, no need to supply path/argv/envp here)