summaryrefslogtreecommitdiff
path: root/src/node_http_parser.cc
diff options
context:
space:
mode:
authorTrevor Norris <trev.norris@gmail.com>2016-03-11 12:55:59 -0700
committerTrevor Norris <trev.norris@gmail.com>2016-03-28 11:30:55 -0600
commit41f333e67949dec26cad3cb8c0bcea686164819b (patch)
treecfed30a17af3c40eb2e19afe309c69a898c2b697 /src/node_http_parser.cc
parent4bc1cccb228fdfd1a527de0ee1d9cedc6dac87e2 (diff)
downloadandroid-node-v8-41f333e67949dec26cad3cb8c0bcea686164819b.tar.gz
android-node-v8-41f333e67949dec26cad3cb8c0bcea686164819b.tar.bz2
android-node-v8-41f333e67949dec26cad3cb8c0bcea686164819b.zip
src,http_parser: remove KickNextTick call
Now that HTTPParser uses MakeCallback it is unnecessary to manually process the nextTickQueue. The KickNextTick function is now no longer needed so code has moved back to node::MakeCallback to simplify implementation. Include minor cleanup moving Environment::tick_info() call below the early return to save an operation. PR-URL: https://github.com/nodejs/node/pull/5756 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Andreas Madsen <amwebdk@gmail.com>
Diffstat (limited to 'src/node_http_parser.cc')
-rw-r--r--src/node_http_parser.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/node_http_parser.cc b/src/node_http_parser.cc
index 0b363ca6c3..12ae9e1443 100644
--- a/src/node_http_parser.cc
+++ b/src/node_http_parser.cc
@@ -587,8 +587,6 @@ class Parser : public AsyncWrap {
if (!cb->IsFunction())
return;
- Environment::AsyncCallbackScope callback_scope(parser->env());
-
// Hooks for GetCurrentBuffer
parser->current_buffer_len_ = nread;
parser->current_buffer_data_ = buf->base;
@@ -597,8 +595,6 @@ class Parser : public AsyncWrap {
parser->current_buffer_len_ = 0;
parser->current_buffer_data_ = nullptr;
-
- parser->env()->KickNextTick(&callback_scope);
}