diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2017-08-18 15:20:23 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-23 15:12:07 -0700 |
commit | 97de1803f8972c41703424bb1697c224deb2b558 (patch) | |
tree | 4d9ed75945a0c515a29ab3c963832c8ef77360d3 /sha1_file.c | |
parent | 84f80ad5e11d29b61570269a25cf447f34c5aeba (diff) | |
download | git-97de1803f8972c41703424bb1697c224deb2b558.tar.gz |
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.c | 9 |
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)); |