Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
read-tree: note about dropping split-index mode or index version
[gitweb.git]
/
pack-revindex.c
diff --git
a/pack-revindex.c
b/pack-revindex.c
index 0bb13b1ba62ed4bc091c9a2a22266839dba05d7d..5bd7c619803c8457a8c1a1a69a11758d34b49eac 100644
(file)
--- 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;
- }
-}