From d2c8a7a975be56584155e48633d44ec7f6ab20dc Mon Sep 17 00:00:00 2001 From: "Michael Mair-Keimberger (asterix)" Date: Mon, 4 Jul 2016 21:32:21 +0200 Subject: [PATCH] app-emacs/magit: remove unused patch Closes: https://github.com/gentoo/gentoo/pull/1826 Signed-off-by: Patrice Clement --- .../files/magit-1.2.0-delete-directory.patch | 33 ------------------- 1 file changed, 33 deletions(-) delete mode 100644 app-emacs/magit/files/magit-1.2.0-delete-directory.patch diff --git a/app-emacs/magit/files/magit-1.2.0-delete-directory.patch b/app-emacs/magit/files/magit-1.2.0-delete-directory.patch deleted file mode 100644 index 6c85345e9460f..0000000000000 --- a/app-emacs/magit/files/magit-1.2.0-delete-directory.patch +++ /dev/null @@ -1,33 +0,0 @@ -Fix byte-compile failure with Emacs 24.3.91. - -The upstream git repo has a more complicated fix which we don't use, -because the Gentoo package need not care about Emacs 22 and XEmacs -compatibility. Instead, always define magit-delete-directory as an -alias of delete-directory. This will work for all supported Emacs -versions. - ---- magit-1.2.0-orig/magit.el -+++ magit-1.2.0/magit.el -@@ -775,21 +775,7 @@ - after-change-functions) - ,@body))))) - -- (if (>= (magit-max-args-internal 'delete-directory) 2) -- (defalias 'magit-delete-directory 'delete-directory) -- (defun magit-delete-directory (directory &optional recursive) -- "Deletes a directory named DIRECTORY. If RECURSIVE is non-nil, --recursively delete all of DIRECTORY's contents as well. -- --Does not follow symlinks." -- (if (or (file-symlink-p directory) -- (not (file-directory-p directory))) -- (delete-file directory) -- (if recursive -- ;; `directory-files-no-dot-files-regex' borrowed from Emacs 23 -- (dolist (file (directory-files directory 'full "\\([^.]\\|\\.\\([^.]\\|\\..\\)\\).*")) -- (magit-delete-directory file recursive))) -- (delete-directory directory))))) -+ (defalias 'magit-delete-directory 'delete-directory)) - - ;;; Utilities -