1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Remove SHOPT_ENV dead code and sh.env variable (re: 8d7f616e)

As so often with SHOPT_* compile-time options, not all the relevant
code was actually conditional on the option macro. After removing
SHOPT_ENV, the arguments to sh_putenv() and env_delete() macro
calls are dead code and, after removing that, the sh.env variable
is unused.
This commit is contained in:
Martijn Dekker 2022-02-14 14:40:21 +00:00
parent 5bd18322e0
commit 82ff91e9d9
5 changed files with 9 additions and 12 deletions

View file

@ -343,7 +343,6 @@ struct Shell_s
int xargexit;
int nenv;
mode_t mask;
void *env; /* environment */
void *init_context;
void *mac_context;
void *lex_context;