From: Jeff King Date: Mon, 7 Jan 2019 08:39:00 +0000 (-0500) Subject: sha1-file: drop has_sha1_file() X-Git-Tag: v2.21.0-rc0~12^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/5d3679ee023642825a5d3c0ca1eec251588a1848?hp=5d3679ee023642825a5d3c0ca1eec251588a1848 sha1-file: drop has_sha1_file() There are no callers left of has_sha1_file() or its with_flags() variant. Let's drop them, and convert has_object_file() from a wrapper into the "real" function. Ironically, the sha1 variant was just copying into an object_id internally, so the resulting code is actually shorter! We can also drop the coccinelle rules for catching has_sha1_file() callers. Since the function no longer exists, the compiler will do that for us. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano ---