summaryrefslogtreecommitdiff
path: root/src/cares_wrap.cc
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-07-24 18:48:48 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2013-07-24 18:49:47 +0200
commitd8240769c6593e4dd6cff3b9e41d35f869c83eed (patch)
tree7118a7cba58a218c123d686694432899e3b7b36f /src/cares_wrap.cc
parentc76ed643484fc2e94e0533bcc2aec3e041372047 (diff)
downloadnode-new-d8240769c6593e4dd6cff3b9e41d35f869c83eed.tar.gz
src: cares_wrap: remove two unused variables
Diffstat (limited to 'src/cares_wrap.cc')
-rw-r--r--src/cares_wrap.cc10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/cares_wrap.cc b/src/cares_wrap.cc
index 91d5b8c86c..663be89629 100644
--- a/src/cares_wrap.cc
+++ b/src/cares_wrap.cc
@@ -731,11 +731,6 @@ static void Query(const FunctionCallbackInfo<Value>& args) {
Wrap* wrap = new Wrap(req_wrap_obj);
wrap->SetOnComplete(callback);
- // We must cache the wrap's js object here, because cares might make the
- // callback from the wrap->Send stack. This will destroy the wrap's internal
- // object reference, causing wrap->object() to return an empty handle.
- Local<Object> object = Local<Object>::New(node_isolate, wrap->persistent());
-
String::Utf8Value name(string);
int err = wrap->Send(*name);
if (err) delete wrap;
@@ -762,11 +757,6 @@ static void QueryWithFamily(const FunctionCallbackInfo<Value>& args) {
Wrap* wrap = new Wrap(req_wrap_obj);
wrap->SetOnComplete(callback);
- // We must cache the wrap's js object here, because cares might make the
- // callback from the wrap->Send stack. This will destroy the wrap's internal
- // object reference, causing wrap->object() to return an empty handle.
- Local<Object> object = Local<Object>::New(node_isolate, wrap->persistent());
-
String::Utf8Value name(string);
int err = wrap->Send(*name, family);
if (err) delete wrap;