]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove some XEmacs compat code from url-util.el
authorStefan Kangas <stefan@marxist.se>
Wed, 3 Aug 2022 08:06:39 +0000 (10:06 +0200)
committerStefan Kangas <stefan@marxist.se>
Wed, 3 Aug 2022 08:39:53 +0000 (10:39 +0200)
These functions only exist in the XEmacs GTK support.
* lisp/url/url-util.el (url-display-percentage): Remove XEmacs
compat code.

lisp/url/url-util.el

index 993a3732abf9d5bc98aa7e391a4d771ecaecea41..a6a4beccebb48fb2a91ecb133667f2080cb6358d 100644 (file)
@@ -196,16 +196,12 @@ Will not do anything if `url-show-status' is nil."
   'file-size-human-readable "24.4")
 
 ;;;###autoload
-(defun url-display-percentage (fmt perc &rest args)
+(defun url-display-percentage (fmt _perc &rest args)
   (when (and url-show-status
             (or (null url-current-object)
                 (not (url-silent url-current-object))))
-    (if (null fmt)
-       (if (fboundp 'clear-progress-display)
-           (clear-progress-display))
-      (if (and (fboundp 'progress-display) perc)
-         (apply 'progress-display fmt perc args)
-       (apply 'message fmt args)))))
+    (when (not (null fmt))
+      (apply 'message fmt args))))
 
 ;;;###autoload
 (defun url-percentage (x y)