From 53b2e02a46b292ddc5b74fc7365f1037c60c0724 Mon Sep 17 00:00:00 2001 From: Trevor Norris Date: Mon, 12 May 2014 13:52:33 -0700 Subject: [PATCH] node: remove duplicate tickInfo assignment When process._setupNextTick() was introduced as the means to properly initialize the mechanism behind process.nextTick() a chunk of code was left behind that assigned memory to process._tickInfo. This code is no longer needed. --- src/env.h | 1 - src/node.cc | 8 -------- 2 files changed, 9 deletions(-) diff --git a/src/env.h b/src/env.h index 31ac8acf152..fba0ce975b0 100644 --- a/src/env.h +++ b/src/env.h @@ -207,7 +207,6 @@ namespace node { V(syscall_string, "syscall") \ V(tick_callback_string, "_tickCallback") \ V(tick_domain_cb_string, "_tickDomainCallback") \ - V(tick_info_string, "_tickInfo") \ V(timeout_string, "timeout") \ V(times_string, "times") \ V(timestamp_string, "timestamp") \ diff --git a/src/node.cc b/src/node.cc index 1a820f798d4..6418c9d1693 100644 --- a/src/node.cc +++ b/src/node.cc @@ -2781,14 +2781,6 @@ void SetupProcessObject(Environment* env, NODE_SET_METHOD(process, "_setupNextTick", SetupNextTick); NODE_SET_METHOD(process, "_setupDomainUse", SetupDomainUse); - // values use to cross communicate with processNextTick - Local tick_info_obj = Object::New(env->isolate()); - tick_info_obj->SetIndexedPropertiesToExternalArrayData( - env->tick_info()->fields(), - kExternalUnsignedIntArray, - env->tick_info()->fields_count()); - process->Set(env->tick_info_string(), tick_info_obj); - // pre-set _events object for faster emit checks process->Set(env->events_string(), Object::New(env->isolate())); }