mirror of https://github.com/nodejs/node.git
timers: remove unused Timer.again()
PR-URL: https://github.com/nodejs/io.js/pull/2256 Reviewed-By: Trevor Norris <trev.norris@gmail.com>pull/2256/head
parent
bcce5cf9bb
commit
3663b124e6
|
@ -43,7 +43,6 @@ class TimerWrap : public HandleWrap {
|
||||||
|
|
||||||
env->SetProtoMethod(constructor, "start", Start);
|
env->SetProtoMethod(constructor, "start", Start);
|
||||||
env->SetProtoMethod(constructor, "stop", Stop);
|
env->SetProtoMethod(constructor, "stop", Stop);
|
||||||
env->SetProtoMethod(constructor, "again", Again);
|
|
||||||
|
|
||||||
target->Set(FIXED_ONE_BYTE_STRING(env->isolate(), "Timer"),
|
target->Set(FIXED_ONE_BYTE_STRING(env->isolate(), "Timer"),
|
||||||
constructor->GetFunction());
|
constructor->GetFunction());
|
||||||
|
@ -90,15 +89,6 @@ class TimerWrap : public HandleWrap {
|
||||||
args.GetReturnValue().Set(err);
|
args.GetReturnValue().Set(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Again(const FunctionCallbackInfo<Value>& args) {
|
|
||||||
TimerWrap* wrap = Unwrap<TimerWrap>(args.Holder());
|
|
||||||
|
|
||||||
CHECK(HandleWrap::IsAlive(wrap));
|
|
||||||
|
|
||||||
int err = uv_timer_again(&wrap->handle_);
|
|
||||||
args.GetReturnValue().Set(err);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void OnTimeout(uv_timer_t* handle) {
|
static void OnTimeout(uv_timer_t* handle) {
|
||||||
TimerWrap* wrap = static_cast<TimerWrap*>(handle->data);
|
TimerWrap* wrap = static_cast<TimerWrap*>(handle->data);
|
||||||
Environment* env = wrap->env();
|
Environment* env = wrap->env();
|
||||||
|
|
Loading…
Reference in New Issue