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
parent
f174a2583c
commit
cbbc935ce0
|
|
@ -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…
Reference in New Issue