summaryrefslogtreecommitdiff
path: root/src/timer_wrap.cc
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2015-07-27 23:12:00 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2015-07-28 00:13:27 +0200
commitbcce5cf9bb8a25d133789cd4b3aec24526c388fb (patch)
tree86d502e4e2cb485a1c950fc2688cb4d1fb783ce5 /src/timer_wrap.cc
parentf2c83bd202e2232e47a036d0c26bb58292a7765b (diff)
downloadnode-new-bcce5cf9bb8a25d133789cd4b3aec24526c388fb.tar.gz
timers: remove unused Timer.getRepeat()
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.cc13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/timer_wrap.cc b/src/timer_wrap.cc
index d422f05995..22282e4655 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, "getRepeat", GetRepeat);
env->SetProtoMethod(constructor, "again", Again);
target->Set(FIXED_ONE_BYTE_STRING(env->isolate(), "Timer"),
@@ -100,18 +99,6 @@ class TimerWrap : public HandleWrap {
args.GetReturnValue().Set(err);
}
- static void GetRepeat(const FunctionCallbackInfo<Value>& args) {
- TimerWrap* wrap = Unwrap<TimerWrap>(args.Holder());
-
- CHECK(HandleWrap::IsAlive(wrap));
-
- int64_t repeat = uv_timer_get_repeat(&wrap->handle_);
- if (repeat <= 0xfffffff)
- args.GetReturnValue().Set(static_cast<uint32_t>(repeat));
- else
- args.GetReturnValue().Set(static_cast<double>(repeat));
- }
-
static void OnTimeout(uv_timer_t* handle) {
TimerWrap* wrap = static_cast<TimerWrap*>(handle->data);
Environment* env = wrap->env();