From 9bcfc0745c83e5e8e60e8a4a53bab5c2d3609c60 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 13 Jan 2011 20:32:14 -0800 Subject: [PATCH] Revert "Implement os.isWindows" This reverts commit 9e31e0837ec3c5a88ed477bec3980dd4608046be. Use process.platform == 'win32' --- doc/api/os.markdown | 4 ---- lib/os.js | 2 -- src/node_os.cc | 6 ------ 3 files changed, 12 deletions(-) diff --git a/doc/api/os.markdown b/doc/api/os.markdown index 477fcba417..3c4e1b44fd 100644 --- a/doc/api/os.markdown +++ b/doc/api/os.markdown @@ -14,10 +14,6 @@ Returns the operating system name. Returns the operating system release. -### os.isWindows - -True on windows, false otherwise. - ### os.uptime() Returns the system uptime in seconds. diff --git a/lib/os.js b/lib/os.js index d2f5d0a8ad..1106e056a4 100644 --- a/lib/os.js +++ b/lib/os.js @@ -8,5 +8,3 @@ exports.totalmem = binding.getTotalMem; exports.cpus = binding.getCPUs; exports.type = binding.getOSType; exports.release = binding.getOSRelease; -exports.isWindows = binding.isWindows; - diff --git a/src/node_os.cc b/src/node_os.cc index fd6395e947..758648835e 100644 --- a/src/node_os.cc +++ b/src/node_os.cc @@ -145,12 +145,6 @@ void OS::Initialize(v8::Handle target) { NODE_SET_METHOD(target, "getCPUs", GetCPUInfo); NODE_SET_METHOD(target, "getOSType", GetOSType); NODE_SET_METHOD(target, "getOSRelease", GetOSRelease); - -#ifdef __POSIX__ - target->Set(String::New("isWindows"), False()); -#else // __MINGW32__ - target->Set(String::New("isWindows"), True()); -#endif }