diff options
author | Jan Schär <jscissr@gmail.com> | 2016-08-06 15:29:50 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2016-08-09 22:26:10 +0300 |
commit | 1b99093df78b795052c944fc6388a934e84e89ef (patch) | |
tree | 0c7865c77b647bef9b5fc567e9c8fcd7a95648cd /src/timer_wrap.cc | |
parent | dabac8a2fb285ae838cd30d5bdbdb42d2d345706 (diff) |
timers: remove unused repeat param in timer_wrap
The `repeat` param in `start(timeout, repeat)` was 0 in all callsites.
PR-URL: https://github.com/nodejs/node/pull/7994
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/timer_wrap.cc')
-rw-r--r-- | src/timer_wrap.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/timer_wrap.cc b/src/timer_wrap.cc index f3267e94485..843fde4673b 100644 --- a/src/timer_wrap.cc +++ b/src/timer_wrap.cc @@ -74,8 +74,7 @@ class TimerWrap : public HandleWrap { CHECK(HandleWrap::IsAlive(wrap)); int64_t timeout = args[0]->IntegerValue(); - int64_t repeat = args[1]->IntegerValue(); - int err = uv_timer_start(&wrap->handle_, OnTimeout, timeout, repeat); + int err = uv_timer_start(&wrap->handle_, OnTimeout, timeout, 0); args.GetReturnValue().Set(err); } |