pack-revindex: remove unused 'find_pack_revindex()'

Now that no callers of 'find_pack_revindex()' remain, remove the function's declaration and implementation entirely. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Taylor Blau committed Jan 13, 2021 at 17:24 UTC 1c3855f33b66accf106a015a4f94c3b7775c54f9
2 files changed -17
pack-revindex.c
-15
@@ -189,21 +189,6 @@ int find_revindex_position(struct packed_git *p, off_t ofs)
189 return -1;
190 }
191
192 -struct revindex_entry *find_pack_revindex(struct packed_git *p, off_t ofs)
193 -{
194 - int pos;
195 -
196 - if (load_pack_revindex(p))
197 - return NULL;
198 -
199 - pos = find_revindex_position(p, ofs);
200 -
201 - if (pos < 0)
202 - return NULL;
203 -
204 - return p->revindex + pos;
205 -}
206 -
192 int offset_to_pack_pos(struct packed_git *p, off_t ofs, uint32_t *pos)
193 {
194 int ret;
pack-revindex.h
-2
@@ -30,8 +30,6 @@ struct revindex_entry {
30 int load_pack_revindex(struct packed_git *p);
31 int find_revindex_position(struct packed_git *p, off_t ofs);
32
33 -struct revindex_entry *find_pack_revindex(struct packed_git *p, off_t ofs);
34 -
33 /*
34 * offset_to_pack_pos converts an object offset to a pack position. This
35 * function returns zero on success, and a negative number otherwise. The