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.
pull/5010/head
Trevor Norris 2014-05-12 13:52:33 -07:00
parent 9b7888ef88
commit 53b2e02a46
2 changed files with 0 additions and 9 deletions

View File

@ -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") \

View File

@ -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<Object> 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()));
}