From bcce5cf9bb8a25d133789cd4b3aec24526c388fb Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 27 Jul 2015 23:12:00 +0200 Subject: [PATCH] timers: remove unused Timer.getRepeat() PR-URL: https://github.com/nodejs/io.js/pull/2256 Reviewed-By: Trevor Norris --- src/timer_wrap.cc | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/timer_wrap.cc b/src/timer_wrap.cc index d422f059953d0b..22282e46559c46 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, "getRepeat", GetRepeat); env->SetProtoMethod(constructor, "again", Again); target->Set(FIXED_ONE_BYTE_STRING(env->isolate(), "Timer"), @@ -100,18 +99,6 @@ class TimerWrap : public HandleWrap { args.GetReturnValue().Set(err); } - static void GetRepeat(const FunctionCallbackInfo& args) { - TimerWrap* wrap = Unwrap(args.Holder()); - - CHECK(HandleWrap::IsAlive(wrap)); - - int64_t repeat = uv_timer_get_repeat(&wrap->handle_); - if (repeat <= 0xfffffff) - args.GetReturnValue().Set(static_cast(repeat)); - else - args.GetReturnValue().Set(static_cast(repeat)); - } - static void OnTimeout(uv_timer_t* handle) { TimerWrap* wrap = static_cast(handle->data); Environment* env = wrap->env();