From 88af0c86357cf627cd7e7cc6f83f7f546754f6c3 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 19 Oct 2011 16:28:52 -0700 Subject: [PATCH] Remove os.openOSHandle Unused. --- src/node_os.cc | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/node_os.cc b/src/node_os.cc index 69ea180438..c7f8a296d0 100644 --- a/src/node_os.cc +++ b/src/node_os.cc @@ -167,20 +167,6 @@ static Handle GetInterfaceAddresses(const Arguments& args) { } -#ifdef __MINGW32__ -static Handle OpenOSHandle(const Arguments& args) { - HandleScope scope; - - intptr_t handle = args[0]->IntegerValue(); - - int fd = _open_osfhandle(handle, 0); - if (fd < 0) - return ThrowException(ErrnoException(errno, "_open_osfhandle")); - - return scope.Close(Integer::New(fd)); -} -#endif // __MINGW32__ - void OS::Initialize(v8::Handle target) { HandleScope scope; @@ -193,10 +179,6 @@ void OS::Initialize(v8::Handle target) { NODE_SET_METHOD(target, "getOSType", GetOSType); NODE_SET_METHOD(target, "getOSRelease", GetOSRelease); NODE_SET_METHOD(target, "getInterfaceAddresses", GetInterfaceAddresses); - -#ifdef __MINGW32__ - NODE_SET_METHOD(target, "openOSHandle", OpenOSHandle); -#endif }