diff --git a/src/cares_wrap.cc b/src/cares_wrap.cc index db2526fd51..2d183395b3 100644 --- a/src/cares_wrap.cc +++ b/src/cares_wrap.cc @@ -989,8 +989,6 @@ void AfterGetNameInfo(uv_getnameinfo_t* req, static void IsIP(const FunctionCallbackInfo& args) { - Environment* env = Environment::GetCurrent(args.GetIsolate()); - node::Utf8Value ip(args[0]); char address_buffer[sizeof(struct in6_addr)]; diff --git a/src/node.cc b/src/node.cc index 0725450245..d85b1e781e 100644 --- a/src/node.cc +++ b/src/node.cc @@ -2828,11 +2828,8 @@ static void SignalExit(int signo) { // when debugging the stream.Writable class or the process.nextTick // function, it is useful to bypass JavaScript entirely. static void RawDebug(const FunctionCallbackInfo& args) { - Environment* env = Environment::GetCurrent(args.GetIsolate()); - CHECK(args.Length() == 1 && args[0]->IsString() && "must be called with a single string"); - node::Utf8Value message(args[0]); fprintf(stderr, "%s\n", *message); fflush(stderr); diff --git a/src/node_zlib.cc b/src/node_zlib.cc index 45ef0b25f6..e3165b2b30 100644 --- a/src/node_zlib.cc +++ b/src/node_zlib.cc @@ -381,8 +381,6 @@ class ZCtx : public AsyncWrap { // just pull the ints out of the args and call the other Init static void Init(const FunctionCallbackInfo& args) { - Environment* env = Environment::GetCurrent(args.GetIsolate()); - CHECK((args.Length() == 4 || args.Length() == 5) && "init(windowBits, level, memLevel, strategy, [dictionary])"); @@ -421,20 +419,13 @@ class ZCtx : public AsyncWrap { } static void Params(const FunctionCallbackInfo& args) { - Environment* env = Environment::GetCurrent(args.GetIsolate()); - CHECK(args.Length() == 2 && "params(level, strategy)"); - ZCtx* ctx = Unwrap(args.Holder()); - Params(ctx, args[0]->Int32Value(), args[1]->Int32Value()); } static void Reset(const FunctionCallbackInfo &args) { - Environment* env = Environment::GetCurrent(args.GetIsolate()); - ZCtx* ctx = Unwrap(args.Holder()); - Reset(ctx); SetDictionary(ctx); }