Skip to content

Commit 6c6e678

Browse files
gengjiawentargos
authored andcommitted
src: remove unused class in node_errors.h
PR-URL: #25980 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent 3eb6f61 commit 6c6e678

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/node_errors.h

-11
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,6 @@ void AppendExceptionLine(Environment* env,
2323
[[noreturn]] void FatalError(const char* location, const char* message);
2424
void OnFatalError(const char* location, const char* message);
2525

26-
// Like a `TryCatch` but exits the process if an exception was caught.
27-
class FatalTryCatch : public v8::TryCatch {
28-
public:
29-
explicit FatalTryCatch(Environment* env)
30-
: TryCatch(env->isolate()), env_(env) {}
31-
~FatalTryCatch();
32-
33-
private:
34-
Environment* env_;
35-
};
36-
3726
void PrintErrorString(const char* format, ...);
3827

3928
void ReportException(Environment* env, const v8::TryCatch& try_catch);

0 commit comments

Comments
 (0)