src: remove unused internals from node.cc
Remove a couple of internal methods that are neither exported in the public headers nor used internally anywhere. PR-URL: https://github.com/nodejs/node/pull/7117 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
e7f1c0043c
commit
de4161d367
53
src/node.cc
53
src/node.cc
@ -722,47 +722,6 @@ const char *signo_string(int signo) {
|
||||
}
|
||||
|
||||
|
||||
// Convenience methods
|
||||
|
||||
|
||||
void ThrowError(v8::Isolate* isolate, const char* errmsg) {
|
||||
Environment::GetCurrent(isolate)->ThrowError(errmsg);
|
||||
}
|
||||
|
||||
|
||||
void ThrowTypeError(v8::Isolate* isolate, const char* errmsg) {
|
||||
Environment::GetCurrent(isolate)->ThrowTypeError(errmsg);
|
||||
}
|
||||
|
||||
|
||||
void ThrowRangeError(v8::Isolate* isolate, const char* errmsg) {
|
||||
Environment::GetCurrent(isolate)->ThrowRangeError(errmsg);
|
||||
}
|
||||
|
||||
|
||||
void ThrowErrnoException(v8::Isolate* isolate,
|
||||
int errorno,
|
||||
const char* syscall,
|
||||
const char* message,
|
||||
const char* path) {
|
||||
Environment::GetCurrent(isolate)->ThrowErrnoException(errorno,
|
||||
syscall,
|
||||
message,
|
||||
path);
|
||||
}
|
||||
|
||||
|
||||
void ThrowUVException(v8::Isolate* isolate,
|
||||
int errorno,
|
||||
const char* syscall,
|
||||
const char* message,
|
||||
const char* path,
|
||||
const char* dest) {
|
||||
Environment::GetCurrent(isolate)
|
||||
->ThrowUVException(errorno, syscall, message, path, dest);
|
||||
}
|
||||
|
||||
|
||||
Local<Value> ErrnoException(Isolate* isolate,
|
||||
int errorno,
|
||||
const char *syscall,
|
||||
@ -1269,18 +1228,6 @@ Local<Value> MakeCallback(Environment* env,
|
||||
}
|
||||
|
||||
|
||||
// Internal only.
|
||||
Local<Value> MakeCallback(Environment* env,
|
||||
Local<Object> recv,
|
||||
uint32_t index,
|
||||
int argc,
|
||||
Local<Value> argv[]) {
|
||||
Local<Value> cb_v = recv->Get(index);
|
||||
CHECK(cb_v->IsFunction());
|
||||
return MakeCallback(env, recv.As<Value>(), cb_v.As<Function>(), argc, argv);
|
||||
}
|
||||
|
||||
|
||||
Local<Value> MakeCallback(Environment* env,
|
||||
Local<Object> recv,
|
||||
Local<String> symbol,
|
||||
|
@ -55,13 +55,6 @@ v8::Local<v8::Value> MakeCallback(Environment* env,
|
||||
int argc = 0,
|
||||
v8::Local<v8::Value>* argv = nullptr);
|
||||
|
||||
// Call with valid HandleScope and while inside Context scope.
|
||||
v8::Local<v8::Value> MakeCallback(Environment* env,
|
||||
v8::Local<v8::Object> recv,
|
||||
uint32_t index,
|
||||
int argc = 0,
|
||||
v8::Local<v8::Value>* argv = nullptr);
|
||||
|
||||
// Call with valid HandleScope and while inside Context scope.
|
||||
v8::Local<v8::Value> MakeCallback(Environment* env,
|
||||
v8::Local<v8::Object> recv,
|
||||
@ -193,21 +186,6 @@ inline MUST_USE_RESULT bool ParseArrayIndex(v8::Local<v8::Value> arg,
|
||||
return true;
|
||||
}
|
||||
|
||||
void ThrowError(v8::Isolate* isolate, const char* errmsg);
|
||||
void ThrowTypeError(v8::Isolate* isolate, const char* errmsg);
|
||||
void ThrowRangeError(v8::Isolate* isolate, const char* errmsg);
|
||||
void ThrowErrnoException(v8::Isolate* isolate,
|
||||
int errorno,
|
||||
const char* syscall = nullptr,
|
||||
const char* message = nullptr,
|
||||
const char* path = nullptr);
|
||||
void ThrowUVException(v8::Isolate* isolate,
|
||||
int errorno,
|
||||
const char* syscall = nullptr,
|
||||
const char* message = nullptr,
|
||||
const char* path = nullptr,
|
||||
const char* dest = nullptr);
|
||||
|
||||
class ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
|
||||
public:
|
||||
inline uint32_t* zero_fill_field() { return &zero_fill_field_; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user