Skip to content

Commit 03dcd70

Browse files
authored
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 <[email protected]> PR-URL: #53079 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]>
1 parent 58a7b00 commit 03dcd70

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/node.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,6 @@ enum OptionEnvvarSettings {
374374
// Disallow the options to be set via the environment variable, like
375375
// `NODE_OPTIONS`.
376376
kDisallowedInEnvvar = 1,
377-
// Deprecated, use kAllowedInEnvvar instead.
378-
kAllowedInEnvironment = kAllowedInEnvvar,
379-
// Deprecated, use kDisallowedInEnvvar instead.
380-
kDisallowedInEnvironment = kDisallowedInEnvvar,
381377
};
382378

383379
// Process the arguments and set up the per-process options.

typings/internalBinding/options.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ export interface OptionsBinding {
1717
aliases: Map<string, string[]>;
1818
};
1919
envSettings: {
20-
kAllowedInEnvironment: 0;
21-
kDisallowedInEnvironment: 1;
20+
kAllowedInEnvvar: 0;
21+
kDisallowedInEnvvar: 1;
2222
};
2323
noGlobalSearchPaths: boolean;
2424
shouldNotRegisterESMLoader: boolean;

0 commit comments

Comments
 (0)