mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-07-03 01:41:15 -03:00
Eliminate env_snapshot_t::current()
These uses are better served by passing in the real environment stack, now that we have environment_t as a shared base class.
This commit is contained in:
@@ -455,7 +455,6 @@ int builtin_read(parser_t &parser, io_streams_t &streams, wchar_t **argv) {
|
||||
auto clear_remaining_vars = [&] () {
|
||||
while (vars_left()) {
|
||||
parser.vars().set_empty(*var_ptr, opts.place);
|
||||
// env_set_one(*var_ptr, opts.place, L"");
|
||||
++var_ptr;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user