From e39380445c4a37d7699fd9283df59118cd296393 Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Mon, 4 Feb 2019 19:54:30 +0800 Subject: [PATCH] src: remove unused method in env.h Signed-off-by: gengjiawen --- src/env.cc | 19 ------------------- src/env.h | 6 ------ 2 files changed, 25 deletions(-) diff --git a/src/env.cc b/src/env.cc index 3d4f39026b0ed9..63c1aa241bd55c 100644 --- a/src/env.cc +++ b/src/env.cc @@ -829,25 +829,6 @@ void CollectExceptionInfo(Environment* env, } } -void Environment::CollectExceptionInfo(Local object, - int errorno, - const char* syscall, - const char* message, - const char* path) { - if (!object->IsObject() || errorno == 0) - return; - - Local obj = object.As(); - 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 object, int errorno, const char* syscall, diff --git a/src/env.h b/src/env.h index f76fb14990c70c..5be490fc305517 100644 --- a/src/env.h +++ b/src/env.h @@ -745,12 +745,6 @@ class Environment { inline performance::performance_state* performance_state(); inline std::unordered_map* performance_marks(); - void CollectExceptionInfo(v8::Local context, - int errorno, - const char* syscall = nullptr, - const char* message = nullptr, - const char* path = nullptr); - void CollectUVExceptionInfo(v8::Local context, int errorno, const char* syscall = nullptr,