summaryrefslogtreecommitdiff
path: root/src/connection_wrap.cc
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2017-01-21 18:56:26 +0100
committerJames M Snell <jasnell@gmail.com>2017-01-23 09:36:10 -0800
commit00679c377962e3258b0c6c0d9e0ffcfe18e8fa46 (patch)
treee92e492e4d1428f6c02dece5f665c3d14b04d3e1 /src/connection_wrap.cc
parentc8c79b937fedff0d5864be079b30c2784ef3d158 (diff)
downloadnode-new-00679c377962e3258b0c6c0d9e0ffcfe18e8fa46.tar.gz
src: remove unnecessary req_wrap_obj
The req_wrap_obj is only used in one place which is setting up the arguments for the MakeCallback call. Removing it to simplify the code somewhat. PR-URL: https://github.com/nodejs/node/pull/10942 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
Diffstat (limited to 'src/connection_wrap.cc')
-rw-r--r--src/connection_wrap.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/connection_wrap.cc b/src/connection_wrap.cc
index 41571946b2..020fe8b4c9 100644
--- a/src/connection_wrap.cc
+++ b/src/connection_wrap.cc
@@ -99,11 +99,10 @@ void ConnectionWrap<WrapType, UVType>::AfterConnect(uv_connect_t* req,
writable = uv_is_writable(req->handle) != 0;
}
- Local<Object> req_wrap_obj = req_wrap->object();
Local<Value> argv[5] = {
Integer::New(env->isolate(), status),
wrap->object(),
- req_wrap_obj,
+ req_wrap->object(),
Boolean::New(env->isolate(), readable),
Boolean::New(env->isolate(), writable)
};