pack-objects: remove bogus arguments to delta_cacheable()
Not only are they unused, but the order in the function declaration and the actual usage don't match. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Nicolas Pitre committed
Aug 15, 2007 at 22:46 UTC
d250626cbbfc1d047b234681d2f71f56e3ada07a
1 file changed
+3
-4
builtin-pack-objects.c
+3
-4
@@ -1273,9 +1273,8 @@ struct unpacked {
1273
unsigned depth;
1274
};
1275
1276
-static int delta_cacheable(struct unpacked *trg, struct unpacked *src,
1277
- unsigned long src_size, unsigned long trg_size,
1278
- unsigned long delta_size)
1276
+static int delta_cacheable(unsigned long src_size, unsigned long trg_size,
1277
+ unsigned long delta_size)
1278
{
1279
if (max_delta_cache_size && delta_cache_size + delta_size > max_delta_cache_size)
1280
return 0;
@@ -1397,7 +1396,7 @@ static int try_delta(struct unpacked *trg, struct unpacked *src,
1396
trg_entry->delta_size = delta_size;
1397
trg->depth = src->depth + 1;
1398
1400
- if (delta_cacheable(src, trg, src_size, trg_size, delta_size)) {
1399
+ if (delta_cacheable(src_size, trg_size, delta_size)) {
1400
trg_entry->delta_data = xrealloc(delta_buf, delta_size);
1401
delta_cache_size += trg_entry->delta_size;
1402
} else