mirror of
https://github.com/git/git
synced 2024-10-06 00:29:28 +00:00
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>
This commit is contained in:
parent
2891b434ac
commit
1c3855f33b
|
@ -189,21 +189,6 @@ int find_revindex_position(struct packed_git *p, off_t ofs)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct revindex_entry *find_pack_revindex(struct packed_git *p, off_t ofs)
|
|
||||||
{
|
|
||||||
int pos;
|
|
||||||
|
|
||||||
if (load_pack_revindex(p))
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
pos = find_revindex_position(p, ofs);
|
|
||||||
|
|
||||||
if (pos < 0)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
return p->revindex + pos;
|
|
||||||
}
|
|
||||||
|
|
||||||
int offset_to_pack_pos(struct packed_git *p, off_t ofs, uint32_t *pos)
|
int offset_to_pack_pos(struct packed_git *p, off_t ofs, uint32_t *pos)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
|
@ -30,8 +30,6 @@ struct revindex_entry {
|
||||||
int load_pack_revindex(struct packed_git *p);
|
int load_pack_revindex(struct packed_git *p);
|
||||||
int find_revindex_position(struct packed_git *p, off_t ofs);
|
int find_revindex_position(struct packed_git *p, off_t ofs);
|
||||||
|
|
||||||
struct revindex_entry *find_pack_revindex(struct packed_git *p, off_t ofs);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* offset_to_pack_pos converts an object offset to a pack position. This
|
* offset_to_pack_pos converts an object offset to a pack position. This
|
||||||
* function returns zero on success, and a negative number otherwise. The
|
* function returns zero on success, and a negative number otherwise. The
|
||||||
|
|
Loading…
Reference in a new issue