cache_or_unpack_entry: drop keep_cache parameter
commit85fe35ab9e0d6ded2afa7811e8f345d8dbe08907
authorJeff King <peff@peff.net>
Mon, 22 Aug 2016 21:57:45 +0000 (22 17:57 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 Aug 2016 21:44:26 +0000 (23 14:44 -0700)
treeea8e133b00960f9ac3ae3e8a605ff9926830800b
parent2632c897f74b1cc9b5533f467da459b9ec725538
cache_or_unpack_entry: drop keep_cache parameter

There is only one caller of cache_or_unpack_entry() and it
always passes 1 for the keep_cache parameter. We can
simplify it by dropping the "!keep_cache" case.

Another call, which did pass 0, was dropped in abe601b
(sha1_file: remove recursion in unpack_entry, 2013-03-27),
as unpack_entry() now does more complicated things than a
simple unpack when there is a cache miss.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_file.c