src: remove unused method in env.h
Signed-off-by: gengjiawen <technicalcute@gmail.com> PR-URL: https://github.com/nodejs/node/pull/25934 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
bb11c256d6
commit
c2d374fccc
19
src/env.cc
19
src/env.cc
@ -827,25 +827,6 @@ void CollectExceptionInfo(Environment* env,
|
||||
}
|
||||
}
|
||||
|
||||
void Environment::CollectExceptionInfo(Local<Value> object,
|
||||
int errorno,
|
||||
const char* syscall,
|
||||
const char* message,
|
||||
const char* path) {
|
||||
if (!object->IsObject() || errorno == 0)
|
||||
return;
|
||||
|
||||
Local<Object> obj = object.As<Object>();
|
||||
const char* err_string = errors::errno_string(errorno);
|
||||
|
||||
if (message == nullptr || message[0] == '\0') {
|
||||
message = strerror(errorno);
|
||||
}
|
||||
|
||||
node::CollectExceptionInfo(this, obj, errorno, err_string,
|
||||
syscall, message, path, nullptr);
|
||||
}
|
||||
|
||||
void Environment::CollectUVExceptionInfo(Local<Value> object,
|
||||
int errorno,
|
||||
const char* syscall,
|
||||
|
@ -747,12 +747,6 @@ class Environment {
|
||||
inline performance::performance_state* performance_state();
|
||||
inline std::unordered_map<std::string, uint64_t>* performance_marks();
|
||||
|
||||
void CollectExceptionInfo(v8::Local<v8::Value> context,
|
||||
int errorno,
|
||||
const char* syscall = nullptr,
|
||||
const char* message = nullptr,
|
||||
const char* path = nullptr);
|
||||
|
||||
void CollectUVExceptionInfo(v8::Local<v8::Value> context,
|
||||
int errorno,
|
||||
const char* syscall = nullptr,
|
||||
|
Loading…
x
Reference in New Issue
Block a user