From 1d0c22b390a0931cf6c07dabc32d98ab6315ea5f Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 21 Aug 2022 14:42:59 -0700 Subject: [PATCH] Remove unused 'vars' variable in path_get_path_core This became unused deliberately in 40733ca25bd7511312b027. --- src/path.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/path.cpp b/src/path.cpp index ed2b88a3e..9561a05b4 100644 --- a/src/path.cpp +++ b/src/path.cpp @@ -28,8 +28,7 @@ // PREFIX is defined at build time. const wcstring_list_t kDefaultPath({L"/bin", L"/usr/bin", PREFIX L"/bin"}); -static get_path_result_t path_get_path_core(const wcstring &cmd, const wcstring_list_t &pathsv, - const environment_t &vars) { +static get_path_result_t path_get_path_core(const wcstring &cmd, const wcstring_list_t &pathsv) { const get_path_result_t noent_res{ENOENT, wcstring{}}; get_path_result_t result{}; @@ -90,7 +89,7 @@ maybe_t path_get_path(const wcstring &cmd, const environment_t &vars) get_path_result_t path_try_get_path(const wcstring &cmd, const environment_t &vars) { auto pathvar = vars.get(L"PATH"); - return path_get_path_core(cmd, pathvar ? pathvar->as_list() : kDefaultPath, vars); + return path_get_path_core(cmd, pathvar ? pathvar->as_list() : kDefaultPath); } static bool path_is_executable(const std::string &path) {