]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove some compat code from url-handlers.el
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 12 Aug 2020 17:38:09 +0000 (19:38 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 12 Aug 2020 17:54:48 +0000 (19:54 +0200)
* lisp/url/url-handlers.el (url-insert-buffer-contents): Remove
check for function that's always defined in Emacs.

lisp/url/url-handlers.el

index 331152808fd033604d70acf5b549ad9d4d5c0d16..1c3607bb6610d9db1bb02338ee76e071d1536fea 100644 (file)
@@ -339,8 +339,7 @@ if it had been inserted from a file named URL."
         (decode-coding-inserted-region (point-min) (point) url
                                        visit beg end replace))
       (let ((inserted (car size-and-charset)))
-        (list url (or (and (fboundp 'after-insert-file-set-coding)
-                           (after-insert-file-set-coding inserted visit))
+        (list url (or (after-insert-file-set-coding inserted visit)
                       inserted))))))
 
 ;;;###autoload