Skip to content

Commit 3663b12

Browse files
committed
timers: remove unused Timer.again()
PR-URL: #2256 Reviewed-By: Trevor Norris <[email protected]>
1 parent bcce5cf commit 3663b12

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/timer_wrap.cc

-10
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ class TimerWrap : public HandleWrap {
4343

4444
env->SetProtoMethod(constructor, "start", Start);
4545
env->SetProtoMethod(constructor, "stop", Stop);
46-
env->SetProtoMethod(constructor, "again", Again);
4746

4847
target->Set(FIXED_ONE_BYTE_STRING(env->isolate(), "Timer"),
4948
constructor->GetFunction());
@@ -90,15 +89,6 @@ class TimerWrap : public HandleWrap {
9089
args.GetReturnValue().Set(err);
9190
}
9291

93-
static void Again(const FunctionCallbackInfo<Value>& args) {
94-
TimerWrap* wrap = Unwrap<TimerWrap>(args.Holder());
95-
96-
CHECK(HandleWrap::IsAlive(wrap));
97-
98-
int err = uv_timer_again(&wrap->handle_);
99-
args.GetReturnValue().Set(err);
100-
}
101-
10292
static void OnTimeout(uv_timer_t* handle) {
10393
TimerWrap* wrap = static_cast<TimerWrap*>(handle->data);
10494
Environment* env = wrap->env();

0 commit comments

Comments
 (0)