mirror of
https://github.com/git/git.git
synced 2026-08-09 01:21:47 +00:00
odb: drop whence field from object info
In the preceding commits we have migrated all callers to derive their information of how a specific object is stored to use the new object info source instead, and hence the field is now unused. Drop it. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
2242f7ee36
commit
aea037e534
@@ -54,8 +54,6 @@ static void populate_object_info(struct odb_source_inmemory *source,
|
||||
*oi->mtimep = 0;
|
||||
if (oi->source_infop)
|
||||
oi->source_infop->source = &source->base;
|
||||
|
||||
oi->whence = OI_CACHED;
|
||||
}
|
||||
|
||||
static int odb_source_inmemory_read_object_info(struct odb_source *source,
|
||||
|
||||
@@ -198,8 +198,6 @@ out:
|
||||
oidclr(oi->delta_base_oid, loose->base.odb->repo->hash_algo);
|
||||
if (oi->source_infop && !ret)
|
||||
oi->source_infop->source = &loose->base;
|
||||
if (!ret)
|
||||
oi->whence = OI_LOOSE;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user