From 5305976766259820831a0a396fd354ff872cb896 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sun, 30 Sep 2018 12:18:14 -0400 Subject: [PATCH] src: use default parameters for `UVException()` --- src/exceptions.cc | 9 --------- src/node.h | 9 ++------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/src/exceptions.cc b/src/exceptions.cc index d1c0794e82fde4..c9e308240fe771 100644 --- a/src/exceptions.cc +++ b/src/exceptions.cc @@ -84,15 +84,6 @@ static Local StringFromPath(Isolate* isolate, const char* path) { } -Local UVException(Isolate* isolate, - int errorno, - const char* syscall, - const char* msg, - const char* path) { - return UVException(isolate, errorno, syscall, msg, path, nullptr); -} - - Local UVException(Isolate* isolate, int errorno, const char* syscall, diff --git a/src/node.h b/src/node.h index d9b070d14ad469..f3e042016d4daf 100644 --- a/src/node.h +++ b/src/node.h @@ -118,13 +118,8 @@ NODE_EXTERN v8::Local UVException(v8::Isolate* isolate, int errorno, const char* syscall = nullptr, const char* message = nullptr, - const char* path = nullptr); -NODE_EXTERN v8::Local UVException(v8::Isolate* isolate, - int errorno, - const char* syscall, - const char* message, - const char* path, - const char* dest); + const char* path = nullptr, + const char* dest = nullptr); NODE_DEPRECATED("Use ErrnoException(isolate, ...)", inline v8::Local ErrnoException(