Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2017-08-19 01:20:23 +0300
committerJunio C Hamano <gitster@pobox.com>2017-08-24 01:12:07 +0300
commit97de1803f8972c41703424bb1697c224deb2b558 (patch)
tree4d9ed75945a0c515a29ab3c963832c8ef77360d3 /sha1_file.c
parent84f80ad5e11d29b61570269a25cf447f34c5aeba (diff)
pack: move unuse_pack()
Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sha1_file.c b/sha1_file.c
index abd3b59b57..9df1bd7c17 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -719,15 +719,6 @@ void *xmmap(void *start, size_t length,
return ret;
}
-void unuse_pack(struct pack_window **w_cursor)
-{
- struct pack_window *w = *w_cursor;
- if (w) {
- w->inuse_cnt--;
- *w_cursor = NULL;
- }
-}
-
static struct packed_git *alloc_packed_git(int extra)
{
struct packed_git *p = xmalloc(st_add(sizeof(*p), extra));