Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit 196207c

Browse files
trentmbnoordhuis
authored andcommitted
node: remove unused flags and files
Drop vestigial `process.installPrefix`, `node --vars`, NODE_CFLAGS and NODE_PREFIX. Also removed unused node_config.h.in (replaced with config.gypi a while back).
1 parent 0ef6cfd commit 196207c

File tree

5 files changed

+1
-54
lines changed

5 files changed

+1
-54
lines changed

doc/api/modules.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ Additionally, node will search in the following locations:
383383
* 3: `$PREFIX/lib/node`
384384

385385
Where `$HOME` is the user's home directory, and `$PREFIX` is node's
386-
configured `installPrefix`.
386+
configured `node_prefix`.
387387

388388
These are mostly for historic reasons. You are highly encouraged to
389389
place your dependencies locally in `node_modules` folders. They will be

doc/api/process.markdown

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -300,13 +300,6 @@ An example of the possible output looks like:
300300
target_arch: 'x64',
301301
v8_use_snapshot: 'true' } }
302302

303-
## process.installPrefix
304-
305-
A compiled-in property that exposes `NODE_PREFIX`.
306-
307-
console.log('Prefix: ' + process.installPrefix);
308-
309-
310303
## process.kill(pid, [signal])
311304

312305
Send a signal to a process. `pid` is the process id and `signal` is the

src/node.cc

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2134,11 +2134,6 @@ Handle<Object> SetupProcessObject(int argc, char *argv[]) {
21342134
// process.version
21352135
process->Set(String::NewSymbol("version"), String::New(NODE_VERSION));
21362136

2137-
#ifdef NODE_PREFIX
2138-
// process.installPrefix
2139-
process->Set(String::NewSymbol("installPrefix"), String::New(NODE_PREFIX));
2140-
#endif
2141-
21422137
// process.moduleLoadList
21432138
module_load_list = Persistent<Array>::New(Array::New());
21442139
process->Set(String::NewSymbol("moduleLoadList"), module_load_list);
@@ -2378,7 +2373,6 @@ static void PrintHelp() {
23782373
" -i, --interactive always enter the REPL even if stdin\n"
23792374
" does not appear to be a terminal\n"
23802375
" --v8-options print v8 command line options\n"
2381-
" --vars print various compiled-in variables\n"
23822376
" --max-stack-size=val set max v8 stack size (bytes)\n"
23832377
"\n"
23842378
"Environment variables:\n"
@@ -2408,14 +2402,6 @@ static void ParseArgs(int argc, char **argv) {
24082402
} else if (strcmp(arg, "--version") == 0 || strcmp(arg, "-v") == 0) {
24092403
printf("%s\n", NODE_VERSION);
24102404
exit(0);
2411-
} else if (strcmp(arg, "--vars") == 0) {
2412-
#ifdef NODE_PREFIX
2413-
printf("NODE_PREFIX: %s\n", NODE_PREFIX);
2414-
#endif
2415-
#ifdef NODE_CFLAGS
2416-
printf("NODE_CFLAGS: %s\n", NODE_CFLAGS);
2417-
#endif
2418-
exit(0);
24192405
} else if (strstr(arg, "--max-stack-size=") == arg) {
24202406
const char *p = 0;
24212407
p = 1 + strchr(arg, '=');

src/node_config.h.in

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/node_version.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
2020
// USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

22-
#if 0 /* commenting out to build via gyp faster */
23-
#include "node_config.h"
24-
#endif
25-
2622
#ifndef NODE_VERSION_H
2723
#define NODE_VERSION_H
2824

0 commit comments

Comments
 (0)