diff --git a/src/timer_wrap.cc b/src/timer_wrap.cc index d2c9a8c9ae2..d422f059953 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, "setRepeat", SetRepeat); env->SetProtoMethod(constructor, "getRepeat", GetRepeat); env->SetProtoMethod(constructor, "again", Again); @@ -101,16 +100,6 @@ class TimerWrap : public HandleWrap { args.GetReturnValue().Set(err); } - static void SetRepeat(const FunctionCallbackInfo& args) { - TimerWrap* wrap = Unwrap(args.Holder()); - - CHECK(HandleWrap::IsAlive(wrap)); - - int64_t repeat = args[0]->IntegerValue(); - uv_timer_set_repeat(&wrap->handle_, repeat); - args.GetReturnValue().Set(0); - } - static void GetRepeat(const FunctionCallbackInfo& args) { TimerWrap* wrap = Unwrap(args.Holder());