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.h | |
| 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.h')
| -rw-r--r-- | object-store.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/object-store.h b/object-store.h index e04469a85f..5668de62d0 100644 --- a/object-store.h +++ b/object-store.h @@ -196,13 +196,6 @@ int odb_mkstemp(struct strbuf *temp_filename, const char *pattern); */ int odb_pack_keep(const char *name); -/* - * Put in `buf` the name of the file in the local object database that - * would be used to store a loose object with the specified oid. - */ -const char *loose_object_path(struct repository *r, struct strbuf *buf, - const struct object_id *oid); - void *map_loose_object(struct repository *r, const struct object_id *oid, unsigned long *size); |
