summaryrefslogtreecommitdiff
path: root/src/node_binding.h
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-01-30 21:07:11 +0100
committerAnna Henningsen <anna@addaleax.net>2019-02-03 20:41:53 +0100
commit270ffb0fa7dc9a771f6a4029ee5b77ed490eb8e8 (patch)
tree6186203ec44235dc4d1f0d07ed15529fe3862c0d /src/node_binding.h
parentcca897ef5d92b20c7862fab00116ea0727439c10 (diff)
downloadandroid-node-v8-270ffb0fa7dc9a771f6a4029ee5b77ed490eb8e8.tar.gz
android-node-v8-270ffb0fa7dc9a771f6a4029ee5b77ed490eb8e8.tar.bz2
android-node-v8-270ffb0fa7dc9a771f6a4029ee5b77ed490eb8e8.zip
src,lib: remove dead `process.binding()` code
There are no non-internal builtin modules left, so this should be safe to remove to a large degree. PR-URL: https://github.com/nodejs/node/pull/25829 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/node_binding.h')
-rw-r--r--src/node_binding.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/node_binding.h b/src/node_binding.h
index 7d79dae80d..d73e18548f 100644
--- a/src/node_binding.h
+++ b/src/node_binding.h
@@ -15,7 +15,7 @@
#include "v8.h"
enum {
- NM_F_BUILTIN = 1 << 0,
+ NM_F_BUILTIN = 1 << 0, // Unused.
NM_F_LINKED = 1 << 1,
NM_F_INTERNAL = 1 << 2,
};
@@ -33,9 +33,6 @@ enum {
nullptr}; \
void _register_##modname() { node_module_register(&_module); }
-#define NODE_BUILTIN_MODULE_CONTEXT_AWARE(modname, regfunc) \
- NODE_MODULE_CONTEXT_AWARE_CPP(modname, regfunc, nullptr, NM_F_BUILTIN)
-
void napi_module_register_by_symbol(v8::Local<v8::Object> exports,
v8::Local<v8::Value> module,
v8::Local<v8::Context> context,
@@ -83,7 +80,6 @@ class DLib {
// use the __attribute__((constructor)). Need to
// explicitly call the _register* functions.
void RegisterBuiltinModules();
-void GetBinding(const v8::FunctionCallbackInfo<v8::Value>& args);
void GetInternalBinding(const v8::FunctionCallbackInfo<v8::Value>& args);
void GetLinkedBinding(const v8::FunctionCallbackInfo<v8::Value>& args);
void DLOpen(const v8::FunctionCallbackInfo<v8::Value>& args);
@@ -92,7 +88,5 @@ void DLOpen(const v8::FunctionCallbackInfo<v8::Value>& args);
} // namespace node
-#include "node_binding.h"
-
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
#endif // SRC_NODE_BINDING_H_