diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-03-31 01:45:54 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-04-01 17:16:10 (GMT) |
commit | 89ef49b30c09a0a8c96a59bbbb38065f89319af3 (patch) | |
tree | 74ff08592d60a8523968c3b6d198cbbb2628a600 /contrib/coccinelle | |
parent | b676b73232fab679502f7c77e60f0852b4f2a09e (diff) | |
download | git-89ef49b30c09a0a8c96a59bbbb38065f89319af3.zip git-89ef49b30c09a0a8c96a59bbbb38065f89319af3.tar.gz git-89ef49b30c09a0a8c96a59bbbb38065f89319af3.tar.bz2 |
object-store.h: remove unused has_sha1_file*()
These macros were last used in 5d3679ee023 (sha1-file: drop
has_sha1_file(), 2019-01-07), so let's remove coccinelle migration
rules added 9b45f499818 (object-store: prepare has_{sha1, object}_file
to handle any repo, 2018-11-13), along with the compatibility macros
themselves.
The "These functions.." in the diff context and the general comment
about compatibility macros still applies to
"NO_THE_REPOSITORY_COMPATIBILITY_MACROS" use just a few lines below
this, so let's keep the comment.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/coccinelle')
-rw-r--r-- | contrib/coccinelle/the_repository.pending.cocci | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/contrib/coccinelle/the_repository.pending.cocci b/contrib/coccinelle/the_repository.pending.cocci index 2ee702e..072ea0d 100644 --- a/contrib/coccinelle/the_repository.pending.cocci +++ b/contrib/coccinelle/the_repository.pending.cocci @@ -14,21 +14,6 @@ expression G; @@ expression E; @@ -- has_sha1_file( -+ repo_has_sha1_file(the_repository, - E) - -@@ -expression E; -expression F; -@@ -- has_sha1_file_with_flags( -+ repo_has_sha1_file_with_flags(the_repository, - E) - -@@ -expression E; -@@ - has_object_file( + repo_has_object_file(the_repository, E) |