]> git.eshelyaron.com Git - emacs.git/commitdiff
Simplify run-at-time
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 8 Mar 2020 08:25:15 +0000 (00:25 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 8 Mar 2020 08:25:38 +0000 (00:25 -0800)
* lisp/emacs-lisp/timer.el (run-at-time):
Remove unnecessary test (Bug#39944).

lisp/emacs-lisp/timer.el

index 9eb8feed0f1c52c4b49a7692d94cd9ae165c07f6..61fd05cbb8053a9c771486165056979a1a50775b 100644 (file)
@@ -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)