File tree 1 file changed +0
-13
lines changed
1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ class TimerWrap : public HandleWrap {
43
43
44
44
env->SetProtoMethod (constructor, " start" , Start);
45
45
env->SetProtoMethod (constructor, " stop" , Stop);
46
- env->SetProtoMethod (constructor, " getRepeat" , GetRepeat);
47
46
env->SetProtoMethod (constructor, " again" , Again);
48
47
49
48
target->Set (FIXED_ONE_BYTE_STRING (env->isolate (), " Timer" ),
@@ -100,18 +99,6 @@ class TimerWrap : public HandleWrap {
100
99
args.GetReturnValue ().Set (err);
101
100
}
102
101
103
- static void GetRepeat (const FunctionCallbackInfo<Value>& args) {
104
- TimerWrap* wrap = Unwrap<TimerWrap>(args.Holder ());
105
-
106
- CHECK (HandleWrap::IsAlive (wrap));
107
-
108
- int64_t repeat = uv_timer_get_repeat (&wrap->handle_ );
109
- if (repeat <= 0xfffffff )
110
- args.GetReturnValue ().Set (static_cast <uint32_t >(repeat));
111
- else
112
- args.GetReturnValue ().Set (static_cast <double >(repeat));
113
- }
114
-
115
102
static void OnTimeout (uv_timer_t * handle) {
116
103
TimerWrap* wrap = static_cast <TimerWrap*>(handle->data );
117
104
Environment* env = wrap->env ();
You can’t perform that action at this time.
0 commit comments