builtin-pack-objects: remove unnecessary code for no-delta
As we do not consider objects marked as "no-delta" early, there is no point to check if the other objects already in the delta window are marked as such -- "no-delta" objects will not enter the window to begin with. Pointed out by Nico. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
May 22, 2007 at 23:04 UTC
6315d52a84e4e6016acf7095ce4c88abffad6496
1 file changed
-2
builtin-pack-objects.c
-2
@@ -1409,8 +1409,6 @@ static void find_deltas(struct object_entry **list, int window, int depth)
1409
m = array + other_idx;
1410
if (!m->entry)
1411
break;
1412
- if (m->entry->no_try_delta)
1413
- continue;
1412
if (try_delta(n, m, max_depth) < 0)
1413
break;
1414
}