From 5db10ca4e3970a65492ee0bb7c1f02766d7d6628 Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Thu, 6 Jun 2019 16:13:05 -0700 Subject: [PATCH] chore: remove support for really old node versions --- src/unix/pty.cc | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/unix/pty.cc b/src/unix/pty.cc index 83620b69c..be0021d71 100644 --- a/src/unix/pty.cc +++ b/src/unix/pty.cc @@ -34,15 +34,7 @@ #if defined(__GLIBC__) || defined(__CYGWIN__) #include #elif defined(__APPLE__) || defined(__OpenBSD__) || defined(__NetBSD__) -/** - * From node v0.10.28 (at least?) there is also a "util.h" in node/src, which - * would confuse the compiler when looking for "util.h". - */ -#if NODE_VERSION_AT_LEAST(0, 10, 28) -#include <../include/util.h> -#else #include -#endif #elif defined(__FreeBSD__) #include #elif defined(__sun) @@ -120,11 +112,7 @@ static void pty_waitpid(void *); static void -#if NODE_VERSION_AT_LEAST(0, 11, 0) pty_after_waitpid(uv_async_t *); -#else -pty_after_waitpid(uv_async_t *, int); -#endif static void pty_after_close(uv_handle_t *); @@ -476,11 +464,7 @@ pty_waitpid(void *data) { */ static void -#if NODE_VERSION_AT_LEAST(0, 11, 0) pty_after_waitpid(uv_async_t *async) { -#else -pty_after_waitpid(uv_async_t *async, int unhelpful) { -#endif Nan::HandleScope scope; pty_baton *baton = static_cast(async->data);