diff --git a/src/unix/error.c b/src/unix/error.c index 05ab4820..74e1bac3 100644 --- a/src/unix/error.c +++ b/src/unix/error.c @@ -34,28 +34,6 @@ #include -/* TODO Expose callback to user to handle fatal error like V8 does. */ -void uv_fatal_error(const int errorno, const char* syscall) { - char* buf = NULL; - const char* errmsg; - - if (buf) { - errmsg = buf; - } else { - errmsg = "Unknown error"; - } - - if (syscall) { - fprintf(stderr, "\nlibuv fatal error. %s: (%d) %s\n", syscall, errorno, - errmsg); - } else { - fprintf(stderr, "\nlibuv fatal error. (%d) %s\n", errorno, errmsg); - } - - abort(); -} - - uv_err_code uv_translate_sys_error(int sys_errno) { switch (sys_errno) { case 0: return UV_OK; diff --git a/src/unix/internal.h b/src/unix/internal.h index abc774e0..9b593d9e 100644 --- a/src/unix/internal.h +++ b/src/unix/internal.h @@ -144,7 +144,6 @@ void uv__run_prepare(uv_loop_t* loop); /* error */ uv_err_code uv_translate_sys_error(int sys_errno); -void uv_fatal_error(const int errorno, const char* syscall); /* stream */ void uv__stream_init(uv_loop_t* loop, uv_stream_t* stream,