From: Jeff King Date: Wed, 20 Mar 2019 08:14:01 +0000 (-0400) Subject: log: drop unused "len" from show_tagger() X-Git-Tag: v2.22.0-rc0~72^2~10 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/af117077d38af01f585adb16ded9deccb559b0b6?hp=af117077d38af01f585adb16ded9deccb559b0b6 log: drop unused "len" from show_tagger() We pass the length of the found "tagger" line to show_tagger(), but it does not use it; instead, it passes the string to pp_user_info(), which reads until newline or NUL. This is OK for our purposes because we always read the object contents into a buffer with an extra NUL (and indeed, our sole caller already relies on this by using starts_with). Let's drop the ignored parameter. And while we're touching the caller, let's use skip_prefix() to avoid a magic number. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano ---