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

Commit

Permalink
node: remove unused flags and files
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
trentm authored and bnoordhuis committed Jun 18, 2012
1 parent 0ef6cfd commit 196207c
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 54 deletions.
2 changes: 1 addition & 1 deletion doc/api/modules.markdown
Expand Up @@ -383,7 +383,7 @@ Additionally, node will search in the following locations:
* 3: `$PREFIX/lib/node`

Where `$HOME` is the user's home directory, and `$PREFIX` is node's
configured `installPrefix`.
configured `node_prefix`.

These are mostly for historic reasons. You are highly encouraged to
place your dependencies locally in `node_modules` folders. They will be
Expand Down
7 changes: 0 additions & 7 deletions doc/api/process.markdown
Expand Up @@ -300,13 +300,6 @@ An example of the possible output looks like:
target_arch: 'x64',
v8_use_snapshot: 'true' } }

## process.installPrefix

A compiled-in property that exposes `NODE_PREFIX`.

console.log('Prefix: ' + process.installPrefix);


## process.kill(pid, [signal])

Send a signal to a process. `pid` is the process id and `signal` is the
Expand Down
14 changes: 0 additions & 14 deletions src/node.cc
Expand Up @@ -2134,11 +2134,6 @@ Handle<Object> SetupProcessObject(int argc, char *argv[]) {
// process.version
process->Set(String::NewSymbol("version"), String::New(NODE_VERSION));

#ifdef NODE_PREFIX
// process.installPrefix
process->Set(String::NewSymbol("installPrefix"), String::New(NODE_PREFIX));
#endif

// process.moduleLoadList
module_load_list = Persistent<Array>::New(Array::New());
process->Set(String::NewSymbol("moduleLoadList"), module_load_list);
Expand Down Expand Up @@ -2378,7 +2373,6 @@ static void PrintHelp() {
" -i, --interactive always enter the REPL even if stdin\n"
" does not appear to be a terminal\n"
" --v8-options print v8 command line options\n"
" --vars print various compiled-in variables\n"
" --max-stack-size=val set max v8 stack size (bytes)\n"
"\n"
"Environment variables:\n"
Expand Down Expand Up @@ -2408,14 +2402,6 @@ static void ParseArgs(int argc, char **argv) {
} else if (strcmp(arg, "--version") == 0 || strcmp(arg, "-v") == 0) {
printf("%s\n", NODE_VERSION);
exit(0);
} else if (strcmp(arg, "--vars") == 0) {
#ifdef NODE_PREFIX
printf("NODE_PREFIX: %s\n", NODE_PREFIX);
#endif
#ifdef NODE_CFLAGS
printf("NODE_CFLAGS: %s\n", NODE_CFLAGS);
#endif
exit(0);
} else if (strstr(arg, "--max-stack-size=") == arg) {
const char *p = 0;
p = 1 + strchr(arg, '=');
Expand Down
28 changes: 0 additions & 28 deletions src/node_config.h.in

This file was deleted.

4 changes: 0 additions & 4 deletions src/node_version.h
Expand Up @@ -19,10 +19,6 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

#if 0 /* commenting out to build via gyp faster */
#include "node_config.h"
#endif

#ifndef NODE_VERSION_H
#define NODE_VERSION_H

Expand Down

0 comments on commit 196207c

Please sign in to comment.