summaryrefslogtreecommitdiff
path: root/contrib/emacs
diff options
context:
space:
mode:
authorRĂ¼diger Sonderfeld <ruediger@c-plusplus.de>2012-06-10 07:38:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-06-10 07:49:00 (GMT)
commitcbbc935ce0ce51ecb51bea7f841d578297f8b8ae (patch)
tree48d60a00adb8aa139488b9d2316171d2e1040ab8 /contrib/emacs
parentf174a2583c9f42315b60205890fa67a79a1f1669 (diff)
downloadgit-cbbc935ce0ce51ecb51bea7f841d578297f8b8ae.zip
git-cbbc935ce0ce51ecb51bea7f841d578297f8b8ae.tar.gz
git-cbbc935ce0ce51ecb51bea7f841d578297f8b8ae.tar.bz2
git-blame.el: use mapc instead of mapcar
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 <ruediger@c-plusplus.de> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/emacs')
-rw-r--r--contrib/emacs/git-blame.el2
1 files changed, 1 insertions, 1 deletions
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)))