Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2015-07-28 00:11:19 +0300
committerBen Noordhuis <info@bnoordhuis.nl>2015-07-28 01:13:02 +0300
commitf2c83bd202e2232e47a036d0c26bb58292a7765b (patch)
treeb23d37f7a6aae61789458455e08a6eab132b2f15 /src/timer_wrap.cc
parent503b089dd86b8e165bfcd9815bebd3a579a1edb4 (diff)
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/timer_wrap.cc')
-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 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<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());