object-store: retire odb_load_loose_cache()
Inline odb_load_loose_cache() into its only remaining caller, odb_loose_cache(). The latter offers a nicer interface for loading the cache, as it doesn't require callers to deal with fanout directory numbers directly. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
4cea1ce0f6
commit
8be88dbcb1
@ -47,13 +47,6 @@ void add_to_alternates_file(const char *dir);
|
||||
*/
|
||||
void add_to_alternates_memory(const char *dir);
|
||||
|
||||
/*
|
||||
* Populate an odb's loose object cache for one particular subdirectory (i.e.,
|
||||
* the one that corresponds to the first byte of objects you're interested in,
|
||||
* from 0 to 255 inclusive).
|
||||
*/
|
||||
void odb_load_loose_cache(struct object_directory *odb, int subdir_nr);
|
||||
|
||||
/*
|
||||
* Populate and return the loose object cache array corresponding to the
|
||||
* given object ID.
|
||||
|
Reference in New Issue
Block a user