Remove tramp-read-passwd advice

tramp-current-method is no longer defined in Emacs 27, and this advice
may not be necessary anymore.
This commit is contained in:
Henrik Lissner 2019-10-29 12:07:51 -04:00
parent d3292e0329
commit fb03dd8df3
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -52,14 +52,6 @@
(unless IS-WINDOWS (unless IS-WINDOWS
(setq tramp-default-method "ssh")) ; faster than the default scp (setq tramp-default-method "ssh")) ; faster than the default scp
(defadvice! +default-inhibit-authinfo-for-sudo-a (orig-fn &rest args)
"Don't consult .authinfo for local sudo TRAMP buffers."
:around #'tramp-read-passwd
(let ((auth-sources
(unless (equal tramp-current-method "sudo")
auth-sources)))
(apply orig-fn args)))
;; ;;
;;; Smartparens config ;;; Smartparens config