diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2014-10-12 17:48:05 +0200 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-10-13 23:46:43 +0400 |
commit | b45d33617b569bf5fa84c9343da9f7d129756968 (patch) | |
tree | dfe1ac8d39cdd1cf9aaa0097f2a0acb5e5379b5f /src/node_zlib.cc | |
parent | 13253350220ee0bec6f34fba10713b56eb53237d (diff) | |
download | android-node-v8-b45d33617b569bf5fa84c9343da9f7d129756968.tar.gz android-node-v8-b45d33617b569bf5fa84c9343da9f7d129756968.tar.bz2 android-node-v8-b45d33617b569bf5fa84c9343da9f7d129756968.zip |
src: remove unused Environment::GetCurrent() calls
Remove a few Environment::GetCurrent() calls that g++ failed to detect
were not used for anything. The return value was assigned to a local
variable but not used meaningfully.
PR-URL: https://github.com/node-forward/node/pull/18
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Diffstat (limited to 'src/node_zlib.cc')
-rw-r--r-- | src/node_zlib.cc | 9 |
1 files changed, 0 insertions, 9 deletions
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<Value>& 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<Value>& args) { - Environment* env = Environment::GetCurrent(args.GetIsolate()); - CHECK(args.Length() == 2 && "params(level, strategy)"); - ZCtx* ctx = Unwrap<ZCtx>(args.Holder()); - Params(ctx, args[0]->Int32Value(), args[1]->Int32Value()); } static void Reset(const FunctionCallbackInfo<Value> &args) { - Environment* env = Environment::GetCurrent(args.GetIsolate()); - ZCtx* ctx = Unwrap<ZCtx>(args.Holder()); - Reset(ctx); SetDictionary(ctx); } |