From d5a16761820f2539bf8610c8f0c64f610e29314e Mon Sep 17 00:00:00 2001 From: Jonathan Tan Date: Fri, 18 Aug 2017 15:20:31 -0700 Subject: pack: move nth_packed_object_{sha1,oid} Signed-off-by: Jonathan Tan Signed-off-by: Junio C Hamano --- cache.h | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'cache.h') diff --git a/cache.h b/cache.h index 79457975f..42a828336 100644 --- a/cache.h +++ b/cache.h @@ -1630,20 +1630,6 @@ extern int odb_pack_keep(const char *name); */ extern void check_pack_index_ptr(const struct packed_git *p, const void *ptr); -/* - * Return the SHA-1 of the nth object within the specified packfile. - * Open the index if it is not already open. The return value points - * at the SHA-1 within the mmapped index. Return NULL if there is an - * error. - */ -extern const unsigned char *nth_packed_object_sha1(struct packed_git *, uint32_t n); -/* - * Like nth_packed_object_sha1, but write the data into the object specified by - * the the first argument. Returns the first argument on success, and NULL on - * error. - */ -extern const struct object_id *nth_packed_object_oid(struct object_id *, struct packed_git *, uint32_t n); - /* * Return the offset of the nth object within the specified packfile. * The index must already be opened. -- cgit v1.2.1