timers: remove unused Timer.setRepeat()
authorBen Noordhuis <info@bnoordhuis.nl>
Mon, 27 Jul 2015 21:11:19 +0000 (23:11 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Mon, 27 Jul 2015 22:13:02 +0000 (00:13 +0200)
PR-URL: https://github.com/nodejs/io.js/pull/2256
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
src/timer_wrap.cc

index d2c9a8c..d422f05 100644 (file)
@@ -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<Value>& args) {
-    TimerWrap* wrap = Unwrap<TimerWrap>(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<Value>& args) {
     TimerWrap* wrap = Unwrap<TimerWrap>(args.Holder());