diff options
author | RĂ¼diger Sonderfeld <ruediger@c-plusplus.de> | 2012-06-10 02:38:03 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-06-10 00:49:00 -0700 |
commit | cbbc935ce0ce51ecb51bea7f841d578297f8b8ae (patch) | |
tree | 48d60a00adb8aa139488b9d2316171d2e1040ab8 /contrib/emacs | |
parent | f174a2583c9f42315b60205890fa67a79a1f1669 (diff) | |
download | git-cbbc935ce0ce51ecb51bea7f841d578297f8b8ae.tar.gz git-cbbc935ce0ce51ecb51bea7f841d578297f8b8ae.tar.xz |
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.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/emacs/git-blame.el b/contrib/emacs/git-blame.el index d351cfb6e..37d797e12 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))) |