Browse Source

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>
maint
Rüdiger Sonderfeld 13 years ago committed by Junio C Hamano
parent
commit
cbbc935ce0
  1. 2
      contrib/emacs/git-blame.el

2
contrib/emacs/git-blame.el

@ -304,7 +304,7 @@ See also function `git-blame-mode'." @@ -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)))


Loading…
Cancel
Save