mirror of https://github.com/nodejs/node.git
timers: remove unused Timer.setRepeat()
PR-URL: https://github.com/nodejs/io.js/pull/2256 Reviewed-By: Trevor Norris <trev.norris@gmail.com>pull/2256/head
parent
503b089dd8
commit
f2c83bd202
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue