mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
Remove unused 'vars' variable in path_get_path_core
This became unused deliberately in 40733ca25b
.
This commit is contained in:
parent
8b14ac4a9c
commit
1d0c22b390
1 changed files with 2 additions and 3 deletions
|
@ -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<wcstring> 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) {
|
||||
|
|
Loading…
Reference in a new issue