From 3663b124e6edc6df7c076c28bbc41cdc208f8baa Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 27 Jul 2015 23:12:42 +0200 Subject: [PATCH] timers: remove unused Timer.again() PR-URL: https://github.com/nodejs/io.js/pull/2256 Reviewed-By: Trevor Norris --- src/timer_wrap.cc | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/timer_wrap.cc b/src/timer_wrap.cc index 22282e46559c46..3f2fff1fac2564 100644 --- a/src/timer_wrap.cc +++ b/src/timer_wrap.cc @@ -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()); @@ -90,15 +89,6 @@ class TimerWrap : public HandleWrap { args.GetReturnValue().Set(err); } - static void Again(const FunctionCallbackInfo& args) { - TimerWrap* wrap = Unwrap(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(handle->data); Environment* env = wrap->env();