Skip to content

Commit c2d374f

Browse files
gengjiawenlpinca
authored andcommitted
src: remove unused method in env.h
Signed-off-by: gengjiawen <[email protected]> PR-URL: #25934 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent bb11c25 commit c2d374f

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

src/env.cc

-19
Original file line numberDiff line numberDiff line change
@@ -827,25 +827,6 @@ void CollectExceptionInfo(Environment* env,
827827
}
828828
}
829829

830-
void Environment::CollectExceptionInfo(Local<Value> object,
831-
int errorno,
832-
const char* syscall,
833-
const char* message,
834-
const char* path) {
835-
if (!object->IsObject() || errorno == 0)
836-
return;
837-
838-
Local<Object> obj = object.As<Object>();
839-
const char* err_string = errors::errno_string(errorno);
840-
841-
if (message == nullptr || message[0] == '\0') {
842-
message = strerror(errorno);
843-
}
844-
845-
node::CollectExceptionInfo(this, obj, errorno, err_string,
846-
syscall, message, path, nullptr);
847-
}
848-
849830
void Environment::CollectUVExceptionInfo(Local<Value> object,
850831
int errorno,
851832
const char* syscall,

src/env.h

-6
Original file line numberDiff line numberDiff line change
@@ -747,12 +747,6 @@ class Environment {
747747
inline performance::performance_state* performance_state();
748748
inline std::unordered_map<std::string, uint64_t>* performance_marks();
749749

750-
void CollectExceptionInfo(v8::Local<v8::Value> context,
751-
int errorno,
752-
const char* syscall = nullptr,
753-
const char* message = nullptr,
754-
const char* path = nullptr);
755-
756750
void CollectUVExceptionInfo(v8::Local<v8::Value> context,
757751
int errorno,
758752
const char* syscall = nullptr,

0 commit comments

Comments
 (0)