summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2015-07-27 23:11:19 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2015-07-28 00:13:02 +0200
commitf2c83bd202e2232e47a036d0c26bb58292a7765b (patch)
treeb23d37f7a6aae61789458455e08a6eab132b2f15 /src
parent503b089dd86b8e165bfcd9815bebd3a579a1edb4 (diff)
downloadnode-new-f2c83bd202e2232e47a036d0c26bb58292a7765b.tar.gz
timers: remove unused Timer.setRepeat()
PR-URL: https://github.com/nodejs/io.js/pull/2256 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/timer_wrap.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/timer_wrap.cc b/src/timer_wrap.cc
index d2c9a8c9ae..d422f05995 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<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());