From cbbc935ce0ce51ecb51bea7f841d578297f8b8ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Sonderfeld?= Date: Sun, 10 Jun 2012 02:38:03 -0500 Subject: git-blame.el: use mapc instead of mapcar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Using mapcar here is a waste of memory because the mapped result is not used. Noticed by emacs ("Warning: `mapcar' called for effect"). [jn: split from a larger patch, with new description] Signed-off-by: RĂ¼diger Sonderfeld Signed-off-by: Jonathan Nieder Signed-off-by: Junio C Hamano diff --git a/contrib/emacs/git-blame.el b/contrib/emacs/git-blame.el index d351cfb..37d797e 100644 --- a/contrib/emacs/git-blame.el +++ b/contrib/emacs/git-blame.el @@ -304,7 +304,7 @@ See also function `git-blame-mode'." (defun git-blame-cleanup () "Remove all blame properties" - (mapcar 'delete-overlay git-blame-overlays) + (mapc 'delete-overlay git-blame-overlays) (setq git-blame-overlays nil) (remove-git-blame-text-properties (point-min) (point-max))) -- cgit v0.10.2-6-g49f6