diff --git a/src/node_os.cc b/src/node_os.cc index 69ea1804385..c7f8a296d01 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 }