Skip to content

Commit cbbc935

Browse files
ruedigergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f174a25 commit cbbc935

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/emacs/git-blame.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ See also function `git-blame-mode'."
304304

305305
(defun git-blame-cleanup ()
306306
"Remove all blame properties"
307-
(mapcar 'delete-overlay git-blame-overlays)
307+
(mapc 'delete-overlay git-blame-overlays)
308308
(setq git-blame-overlays nil)
309309
(remove-git-blame-text-properties (point-min) (point-max)))
310310

0 commit comments

Comments
 (0)