diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-04-29 09:52:16 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-04-29 10:08:12 -0700 |
| commit | 56ef85e82ffa39ac86db39bc0ac11c67451d0e5b (patch) | |
| tree | 2b6874b1aaeace33a53e1bedf5f4f55c5cd09859 /object-store.c | |
| parent | object-store: move `struct packed_git` into "packfile.h" (diff) | |
| download | git-56ef85e82ffa39ac86db39bc0ac11c67451d0e5b.tar.gz git-56ef85e82ffa39ac86db39bc0ac11c67451d0e5b.zip | |
object-store: drop `loose_object_path()`
The function `loose_object_path()` is a trivial wrapper around
`odb_loose_path()`, with the only exception that it always uses the
primary object database of the given repository. This doesn't really add
a ton of value though, so let's drop the function and inline it at every
callsite.
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 | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/object-store.c b/object-store.c index 6ab50d25d3..e5cfb8c007 100644 --- a/object-store.c +++ b/object-store.c @@ -96,12 +96,6 @@ int odb_pack_keep(const char *name) return open(name, O_RDWR|O_CREAT|O_EXCL, 0600); } -const char *loose_object_path(struct repository *r, struct strbuf *buf, - const struct object_id *oid) -{ - return odb_loose_path(r->objects->odb, buf, oid); -} - /* * Return non-zero iff the path is usable as an alternate object database. */ |
