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.h | |
| 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.h')
| -rw-r--r-- | object-store.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/object-store.h b/object-store.h index f0e111464c..c2fe5a1960 100644 --- a/object-store.h +++ b/object-store.h @@ -276,23 +276,6 @@ enum { int has_object(struct repository *r, const struct object_id *oid, unsigned flags); -/* - * These macros and functions are deprecated. If checking existence for an - * object that is likely to be missing and/or whose absence is relatively - * inconsequential (or is consequential but the caller is prepared to handle - * it), use has_object(), which has better defaults (no lazy fetch in a partial - * clone and no rechecking of packed storage). In the unlikely event that a - * caller needs to assert existence of an object that it fully expects to - * exist, and wants to trigger a lazy fetch in a partial clone, use - * oid_object_info_extended() with a NULL struct object_info. - * - * These functions can be removed once all callers have migrated to - * has_object() and/or oid_object_info_extended(). - */ -int repo_has_object_file(struct repository *r, const struct object_id *oid); -int repo_has_object_file_with_flags(struct repository *r, - const struct object_id *oid, int flags); - void assert_oid_type(const struct object_id *oid, enum object_type expect); /* |
