diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-04-29 09:52:21 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-04-29 10:08:13 -0700 |
| commit | 8a9e27be8213ab90ac761d56ac36229ee52c443f (patch) | |
| tree | 30794951973ede1c2eea5dd4272e505db45c7afb /object-store.c | |
| parent | 062b914c841329a003f74e1340ea5178391274a6 (diff) | |
| download | git-8a9e27be8213ab90ac761d56ac36229ee52c443f.tar.xz | |
object-store: drop `repo_has_object_file()`
In the preceding commits we have converted all users of
`repo_has_object_file()` and its `_with_flags()` variant to instead use
`has_object()`. Drop these functions.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object-store.c')
| -rw-r--r-- | object-store.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/object-store.c b/object-store.c index 2db34804e8..2f51d0e3b0 100644 --- a/object-store.c +++ b/object-store.c @@ -949,20 +949,6 @@ int has_object(struct repository *r, const struct object_id *oid, return oid_object_info_extended(r, oid, NULL, object_info_flags) >= 0; } -int repo_has_object_file_with_flags(struct repository *r, - const struct object_id *oid, int flags) -{ - if (!startup_info->have_repository) - return 0; - return oid_object_info_extended(r, oid, NULL, flags) >= 0; -} - -int repo_has_object_file(struct repository *r, - const struct object_id *oid) -{ - return repo_has_object_file_with_flags(r, oid, 0); -} - void assert_oid_type(const struct object_id *oid, enum object_type expect) { enum object_type type = oid_object_info(the_repository, oid, NULL); |
