From 6c6e678eaa4a15b8f8afa148214eb6ca6eb3f3b7 Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Thu, 7 Feb 2019 16:03:02 +0800 Subject: [PATCH] src: remove unused class in node_errors.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/25980 Reviewed-By: Anna Henningsen Reviewed-By: Michaƫl Zasso --- src/node_errors.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/node_errors.h b/src/node_errors.h index eefc5706374298..70b81ba7857a6c 100644 --- a/src/node_errors.h +++ b/src/node_errors.h @@ -23,17 +23,6 @@ void AppendExceptionLine(Environment* env, [[noreturn]] void FatalError(const char* location, const char* message); void OnFatalError(const char* location, const char* message); -// Like a `TryCatch` but exits the process if an exception was caught. -class FatalTryCatch : public v8::TryCatch { - public: - explicit FatalTryCatch(Environment* env) - : TryCatch(env->isolate()), env_(env) {} - ~FatalTryCatch(); - - private: - Environment* env_; -}; - void PrintErrorString(const char* format, ...); void ReportException(Environment* env, const v8::TryCatch& try_catch);