diff options
| author | Paul Eggert | 2020-03-08 00:25:15 -0800 |
|---|---|---|
| committer | Paul Eggert | 2020-03-08 00:25:38 -0800 |
| commit | 0a3f8da6e1a56ada409cf1677ac40fcc75a8a33c (patch) | |
| tree | e6a7111dd16a49e25e3d6e084d5738f0bc01818c | |
| parent | 4415534ef01309417e8f552eb4c075095603f2f3 (diff) | |
| download | emacs-0a3f8da6e1a56ada409cf1677ac40fcc75a8a33c.tar.gz emacs-0a3f8da6e1a56ada409cf1677ac40fcc75a8a33c.zip | |
Simplify run-at-time
* lisp/emacs-lisp/timer.el (run-at-time):
Remove unnecessary test (Bug#39944).
| -rw-r--r-- | lisp/emacs-lisp/timer.el | 3 |
1 files changed, 0 insertions, 3 deletions
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 | |||
| 378 | (decoded-time-year now) | 378 | (decoded-time-year now) |
| 379 | (decoded-time-zone now))))))) | 379 | (decoded-time-zone now))))))) |
| 380 | 380 | ||
| 381 | (or (time-equal-p time time) | ||
| 382 | (error "Invalid time format")) | ||
| 383 | |||
| 384 | (let ((timer (timer-create))) | 381 | (let ((timer (timer-create))) |
| 385 | (timer-set-time timer time repeat) | 382 | (timer-set-time timer time repeat) |
| 386 | (timer-set-function timer function args) | 383 | (timer-set-function timer function args) |