object-file: remove OBJECT_INFO_IGNORE_LOOSE

Its last user was removed in 97b2fa08b6 (fetch-pack: drop custom loose object cache, 2018-11-12), so we can remove it. Helped-by: Jeff King <peff@peff.net> Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jonathan Tan committed Dec 14, 2022 at 11:17 UTC acd6f0d973e6cf27188d80ad3e8e6876bf0e3da9
2 files changed +1 -6
object-file.c
-3
@@ -1575,9 +1575,6 @@ static int do_oid_object_info_extended(struct repository *r,
1575 if (find_pack_entry(r, real, &e))
1576 break;
1577
1578 - if (flags & OBJECT_INFO_IGNORE_LOOSE)
1579 - return -1;
1580 -
1578 /* Most likely it's a loose object. */
1579 if (!loose_object_info(r, real, oi, flags))
1580 return 0;
object-store.h
+1 -3
@@ -434,13 +434,11 @@ struct object_info {
434 #define OBJECT_INFO_ALLOW_UNKNOWN_TYPE 2
435 /* Do not retry packed storage after checking packed and loose storage */
436 #define OBJECT_INFO_QUICK 8
437 -/* Do not check loose object */
438 -#define OBJECT_INFO_IGNORE_LOOSE 16
437 /*
438 * Do not attempt to fetch the object if missing (even if fetch_is_missing is
439 * nonzero).
440 */
443 -#define OBJECT_INFO_SKIP_FETCH_OBJECT 32
441 +#define OBJECT_INFO_SKIP_FETCH_OBJECT 16
442 /*
443 * This is meant for bulk prefetching of missing blobs in a partial
444 * clone. Implies OBJECT_INFO_SKIP_FETCH_OBJECT and OBJECT_INFO_QUICK