Skip to content

Commit

Permalink
timers: remove unused Timer.again()
Browse files Browse the repository at this point in the history
PR-URL: #2256
Reviewed-By: Trevor Norris <[email protected]>
  • Loading branch information
bnoordhuis committed Jul 27, 2015
1 parent bcce5cf commit 3663b12
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/timer_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ class TimerWrap : public HandleWrap {

env->SetProtoMethod(constructor, "start", Start);
env->SetProtoMethod(constructor, "stop", Stop);
env->SetProtoMethod(constructor, "again", Again);

target->Set(FIXED_ONE_BYTE_STRING(env->isolate(), "Timer"),
constructor->GetFunction());
Expand Down Expand Up @@ -90,15 +89,6 @@ class TimerWrap : public HandleWrap {
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) {
TimerWrap* wrap = static_cast<TimerWrap*>(handle->data);
Environment* env = wrap->env();
Expand Down

0 comments on commit 3663b12

Please sign in to comment.