]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove some Emacs 19 compat code
authorStefan Kangas <stefan@marxist.se>
Fri, 16 Oct 2020 13:26:37 +0000 (15:26 +0200)
committerStefan Kangas <stefan@marxist.se>
Fri, 16 Oct 2020 13:27:43 +0000 (15:27 +0200)
* lisp/type-break.el (type-break-time-stamp): Remove Emacs 19
compat code.

lisp/type-break.el

index 0d5377fb88b34a9292e8e42ec41193b1ad88c306..a9ec19b2565f741b074e77f81a043f0126a8f079 100644 (file)
@@ -956,11 +956,7 @@ FRAC should be the inverse of the fractional value; for example, a value of
     sum))
 
 (defun type-break-time-stamp (&optional when)
-  (if (fboundp 'format-time-string)
-      (format-time-string type-break-time-stamp-format when)
-    ;; Emacs 19.28 and prior do not have format-time-string.
-    ;; In that case, result is not customizable.  Upgrade today!
-    (format "[%s] " (substring (current-time-string when) 11 16))))
+  (format-time-string type-break-time-stamp-format when))
 
 (defun type-break-format-time (secs)
   (let ((mins (/ secs 60)))