]> git.eshelyaron.com Git - emacs.git/commitdiff
Simplify soap-decode-data-time use of encode-time
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 12 May 2023 02:48:18 +0000 (19:48 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 12 May 2023 02:49:02 +0000 (19:49 -0700)
* lisp/net/soap-client.el (soap-decode-date-time):
Call encode-time directly instead of via ‘apply’.
No need for the two nil args.

lisp/net/soap-client.el

index 866b33decc672ffde96e42b825174e699350c639..2991d29f87070af51e2e329b3d3a8fb429b5dbd8 100644 (file)
@@ -717,12 +717,9 @@ representing leap seconds."
                 second)
               minute hour day month year second-fraction datatype time-zone)
       (let ((time
-             ;; Continue calling encode-time the old way, for backward
-             ;; compatibility in GNU ELPA.
-             (apply
-              #'encode-time (list
-                             (if new-decode-time new-decode-time-second second)
-                             minute hour day month year nil nil time-zone))))
+             ;; Call encode-time the old way, for Emacs<27.
+             (encode-time (if new-decode-time new-decode-time-second second)
+                          minute hour day month year time-zone)))
         (if new-decode-time
             (with-no-warnings (decode-time time nil t))
           (decode-time time))))))