Skip to content

Commit

Permalink
timers: remove unused Timer.setRepeat()
Browse files Browse the repository at this point in the history
PR-URL: #2256
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
  • Loading branch information
bnoordhuis committed Jul 27, 2015
1 parent 503b089 commit f2c83bd
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 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, "setRepeat", SetRepeat);
env->SetProtoMethod(constructor, "getRepeat", GetRepeat);
env->SetProtoMethod(constructor, "again", Again);

Expand Down Expand Up @@ -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());

Expand Down

0 comments on commit f2c83bd

Please sign in to comment.