(float-time): If float-time is bound, always use it on all Emacsen.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Thu, 27 Jan 2011 00:30:28 +0000 (16:30 -0800)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Thu, 27 Jan 2011 00:30:28 +0000 (16:30 -0800)
It's unclear why the subrp check was there.  If it turns out to be
necessary, this patch should be reverted, and a comment saying why
it't that way should be added.

lisp/ChangeLog
lisp/gnus-util.el

index e0c5a60..d3ef27b 100644 (file)
@@ -1,5 +1,8 @@
 2011-01-27  Lars Ingebrigtsen  <larsi@gnus.org>
 
+       * gnus-util.el (float-time): If float-time is bound, always use it on
+       all Emacsen.  It's unclear why the subrp check was there.
+
        * shr.el (shr-put-color): Don't do the box padding in tables, since
        they're already padded.
 
index fc3c0b4..ef99bcc 100644 (file)
@@ -332,9 +332,7 @@ Symbols are also allowed; their print names are used instead."
             (> (nth 1 fdate) (nth 1 date))))))
 
 (eval-and-compile
-  (if (or (featurep 'emacs)
-         (and (fboundp 'float-time)
-              (subrp (symbol-function 'float-time))))
+  (if (fboundp 'float-time)
       (defalias 'gnus-float-time 'float-time)
     (defun gnus-float-time (&optional time)
       "Convert time value TIME to a floating point number.