From: Paul Eggert Date: Sun, 8 Mar 2020 08:25:15 +0000 (-0800) Subject: Simplify run-at-time X-Git-Tag: emacs-28.0.90~7786 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0a3f8da6e1a56ada409cf1677ac40fcc75a8a33c;p=emacs.git Simplify run-at-time * lisp/emacs-lisp/timer.el (run-at-time): Remove unnecessary test (Bug#39944). --- diff --git a/lisp/emacs-lisp/timer.el b/lisp/emacs-lisp/timer.el index 9eb8feed0f1..61fd05cbb80 100644 --- a/lisp/emacs-lisp/timer.el +++ b/lisp/emacs-lisp/timer.el @@ -378,9 +378,6 @@ This function returns a timer object which you can use in (decoded-time-year now) (decoded-time-zone now))))))) - (or (time-equal-p time time) - (error "Invalid time format")) - (let ((timer (timer-create))) (timer-set-time timer time repeat) (timer-set-function timer function args)