From 040fedfeafe249e66ef626fc7b18b7ef7f4b90e5 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 26 Mar 2018 18:14:00 -0400 Subject: [PATCH] Remove defunct tramp advise --- core/core.el | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/core.el b/core/core.el index 4b24e4de8..05322509c 100644 --- a/core/core.el +++ b/core/core.el @@ -227,11 +227,5 @@ with functions that require it (like modeline segments)." buffer)) (advice-add #'make-indirect-buffer :around #'doom*set-indirect-buffer-filename) -(defun doom*no-authinfo-for-tramp (orig-fn &rest args) - "Don't look into .authinfo for local sudo TRAMP buffers." - (let ((auth-sources (if (equal tramp-current-method "sudo") nil auth-sources))) - (apply orig-fn args))) -(advice-add #'tramp-read-passwd :around #'doom*no-authinfo-for-tramp) - (provide 'core) ;;; core.el ends here