summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pack-revindex.c11
-rw-r--r--pack-revindex.h1
-rw-r--r--sha1_file.c1
3 files changed, 0 insertions, 13 deletions
diff --git a/pack-revindex.c b/pack-revindex.c
index 0bb13b1ba6..5bd7c61980 100644
--- a/pack-revindex.c
+++ b/pack-revindex.c
@@ -245,14 +245,3 @@ struct revindex_entry *find_pack_revindex(struct packed_git *p, off_t ofs)
return pridx->revindex + pos;
}
-
-void discard_revindex(void)
-{
- if (pack_revindex_hashsz) {
- int i;
- for (i = 0; i < pack_revindex_hashsz; i++)
- free(pack_revindex[i].revindex);
- free(pack_revindex);
- pack_revindex_hashsz = 0;
- }
-}
diff --git a/pack-revindex.h b/pack-revindex.h
index 866ca9c571..d737f98965 100644
--- a/pack-revindex.h
+++ b/pack-revindex.h
@@ -15,6 +15,5 @@ struct pack_revindex *revindex_for_pack(struct packed_git *p);
int find_revindex_position(struct pack_revindex *pridx, off_t ofs);
struct revindex_entry *find_pack_revindex(struct packed_git *p, off_t ofs);
-void discard_revindex(void);
#endif
diff --git a/sha1_file.c b/sha1_file.c
index 129496250c..36d55c05f7 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -1279,7 +1279,6 @@ void prepare_packed_git(void)
void reprepare_packed_git(void)
{
- discard_revindex();
prepare_packed_git_run_once = 0;
prepare_packed_git();
}