File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 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 {
4343
4444 env->SetProtoMethod (constructor, " start" , Start);
4545 env->SetProtoMethod (constructor, " stop" , Stop);
46- env->SetProtoMethod (constructor, " getRepeat" , GetRepeat);
4746 env->SetProtoMethod (constructor, " again" , Again);
4847
4948 target->Set (FIXED_ONE_BYTE_STRING (env->isolate (), " Timer" ),
@@ -100,18 +99,6 @@ class TimerWrap : public HandleWrap {
10099 args.GetReturnValue ().Set (err);
101100 }
102101
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-
115102 static void OnTimeout (uv_timer_t * handle) {
116103 TimerWrap* wrap = static_cast <TimerWrap*>(handle->data );
117104 Environment* env = wrap->env ();
You can’t perform that action at this time.
0 commit comments