Skip to content

Commit 9ac75d1

Browse files
committed
src: remove pointless node_os.h header file
src/node_os.cc doesn't export anything that's used elsewhere. Remove it.
1 parent 87405b0 commit 9ac75d1

File tree

3 files changed

+5
-43
lines changed

3 files changed

+5
-43
lines changed

node.gyp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@
125125
'src/node_file.h',
126126
'src/node_http_parser.h',
127127
'src/node_javascript.h',
128-
'src/node_os.h',
129128
'src/node_root_certs.h',
130129
'src/node_version.h',
131130
'src/node_watchdog.h',

src/node_os.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121

2222

2323
#include "node.h"
24-
#include "node_os.h"
25-
2624
#include "v8.h"
2725

2826
#include <errno.h>
@@ -45,9 +43,11 @@
4543
#endif // MAXHOSTNAMELEN
4644

4745
namespace node {
46+
namespace os {
4847

4948
using v8::Array;
5049
using v8::FunctionCallbackInfo;
50+
using v8::Handle;
5151
using v8::HandleScope;
5252
using v8::Local;
5353
using v8::Number;
@@ -275,7 +275,7 @@ static void GetInterfaceAddresses(const FunctionCallbackInfo<Value>& args) {
275275
}
276276

277277

278-
void OS::Initialize(v8::Handle<v8::Object> target) {
278+
void Initialize(Handle<Object> target) {
279279
HandleScope scope(node_isolate);
280280

281281
NODE_SET_METHOD(target, "getEndianness", GetEndianness);
@@ -290,7 +290,7 @@ void OS::Initialize(v8::Handle<v8::Object> target) {
290290
NODE_SET_METHOD(target, "getInterfaceAddresses", GetInterfaceAddresses);
291291
}
292292

293-
293+
} // namespace os
294294
} // namespace node
295295

296-
NODE_MODULE(node_os, node::OS::Initialize)
296+
NODE_MODULE(node_os, node::os::Initialize)

src/node_os.h

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

0 commit comments

Comments
 (0)