src: nuke deprecated and un-used enum members in OptionEnvvarSettings

Delete deprecated an never used enum options `kAllowedInEnvironment`
and `kDisallowedInEnvironment` in `OptionEnvvarSettings`

Signed-off-by: Juan José Arboleda <soyjuanarbol@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/53079
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
This commit is contained in:
Juan José 2024-11-05 15:44:24 -05:00 committed by GitHub
parent 58a7b0011a
commit 03dcd7077a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View File

@ -374,10 +374,6 @@ enum OptionEnvvarSettings {
// Disallow the options to be set via the environment variable, like // Disallow the options to be set via the environment variable, like
// `NODE_OPTIONS`. // `NODE_OPTIONS`.
kDisallowedInEnvvar = 1, kDisallowedInEnvvar = 1,
// Deprecated, use kAllowedInEnvvar instead.
kAllowedInEnvironment = kAllowedInEnvvar,
// Deprecated, use kDisallowedInEnvvar instead.
kDisallowedInEnvironment = kDisallowedInEnvvar,
}; };
// Process the arguments and set up the per-process options. // Process the arguments and set up the per-process options.

View File

@ -17,8 +17,8 @@ export interface OptionsBinding {
aliases: Map<string, string[]>; aliases: Map<string, string[]>;
}; };
envSettings: { envSettings: {
kAllowedInEnvironment: 0; kAllowedInEnvvar: 0;
kDisallowedInEnvironment: 1; kDisallowedInEnvvar: 1;
}; };
noGlobalSearchPaths: boolean; noGlobalSearchPaths: boolean;
shouldNotRegisterESMLoader: boolean; shouldNotRegisterESMLoader: boolean;