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:
ridiculousfish
2018-09-16 12:48:50 -07:00
parent 03b92ffe00
commit abcd24f716
9 changed files with 16 additions and 34 deletions

View File

@@ -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;
}
};