summaryrefslogtreecommitdiff
path: root/src/node_internals.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_internals.h')
-rw-r--r--src/node_internals.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/node_internals.h b/src/node_internals.h
index 9141355df6..c99b2feeb0 100644
--- a/src/node_internals.h
+++ b/src/node_internals.h
@@ -195,21 +195,6 @@ NODE_DEPRECATED("Use ThrowUVException(isolate)",
return ThrowUVException(isolate, errorno, syscall, message, path);
})
-inline void NODE_SET_EXTERNAL(v8::Handle<v8::ObjectTemplate> target,
- const char* key,
- v8::AccessorGetterCallback getter) {
- v8::Isolate* isolate = v8::Isolate::GetCurrent();
- v8::HandleScope handle_scope(isolate);
- v8::Local<v8::String> prop = v8::String::NewFromUtf8(isolate, key);
- target->SetAccessor(prop,
- getter,
- nullptr,
- v8::Handle<v8::Value>(),
- v8::DEFAULT,
- static_cast<v8::PropertyAttribute>(v8::ReadOnly |
- v8::DontDelete));
-}
-
enum NodeInstanceType { MAIN, WORKER };
class NodeInstanceData {