From 53455776268ff17ebb3504dd092bf0ed6626849d Mon Sep 17 00:00:00 2001 From: maflcko <6399679+maflcko@users.noreply.github.com> Date: Tue, 17 Feb 2026 12:49:44 +0100 Subject: [PATCH] refactor: Removed unused args_ member variable The private field was only set in one constructor, not in the others. Also, it was unused. So remove it. This refactor does not change any behavior. --- cpp-subprocess/subprocess.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cpp-subprocess/subprocess.hpp b/cpp-subprocess/subprocess.hpp index 63fd762..7267fff 100644 --- a/cpp-subprocess/subprocess.hpp +++ b/cpp-subprocess/subprocess.hpp @@ -1380,8 +1380,7 @@ class Popen friend class detail::Child; template - Popen(const std::string& cmd_args, Args&& ...args): - args_(cmd_args) + Popen(const std::string& cmd_args, Args&& ...args) { vargs_ = util::split(cmd_args); init_args(std::forward(args)...); @@ -1510,8 +1509,6 @@ class Popen env_map_t env_; preexec_func preexec_fn_; - // Command in string format - std::string args_; // Command provided as sequence std::vector vargs_; std::vector cargv_;