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:12:42 +0300
committerBen Noordhuis <info@bnoordhuis.nl>2015-07-28 01:13:29 +0300
commit3663b124e6edc6df7c076c28bbc41cdc208f8baa (patch)
tree0749dfa29444a2d4af328ab7ec25cafcf6fc5ce8 /src/timer_wrap.cc
parentbcce5cf9bb8a25d133789cd4b3aec24526c388fb (diff)
timers: remove unused Timer.again()
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.cc10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/timer_wrap.cc b/src/timer_wrap.cc
index 22282e46559..3f2fff1fac2 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, "again", Again);
target->Set(FIXED_ONE_BYTE_STRING(env->isolate(), "Timer"),
constructor->GetFunction());
@@ -90,15 +89,6 @@ class TimerWrap : public HandleWrap {
args.GetReturnValue().Set(err);
}
- static void Again(const FunctionCallbackInfo<Value>& args) {
- TimerWrap* wrap = Unwrap<TimerWrap>(args.Holder());
-
- CHECK(HandleWrap::IsAlive(wrap));
-
- int err = uv_timer_again(&wrap->handle_);
- args.GetReturnValue().Set(err);
- }
-
static void OnTimeout(uv_timer_t* handle) {
TimerWrap* wrap = static_cast<TimerWrap*>(handle->data);
Environment* env = wrap->env();