Skip to content

Commit 1c3855f

Browse files
ttaylorrgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2891b43 commit 1c3855f

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

pack-revindex.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -189,21 +189,6 @@ int find_revindex_position(struct packed_git *p, off_t ofs)
189189
return -1;
190190
}
191191

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-
207192
int offset_to_pack_pos(struct packed_git *p, off_t ofs, uint32_t *pos)
208193
{
209194
int ret;

pack-revindex.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ struct revindex_entry {
3030
int load_pack_revindex(struct packed_git *p);
3131
int find_revindex_position(struct packed_git *p, off_t ofs);
3232

33-
struct revindex_entry *find_pack_revindex(struct packed_git *p, off_t ofs);
34-
3533
/*
3634
* offset_to_pack_pos converts an object offset to a pack position. This
3735
* function returns zero on success, and a negative number otherwise. The

0 commit comments

Comments
 (0)