Skip to content

Commit

Permalink
builtin-pack-objects: remove unnecessary code for no-delta
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed May 23, 2007
1 parent a74db82 commit 6315d52
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions builtin-pack-objects.c
Original file line number Diff line number Diff line change
Expand Up @@ -1409,8 +1409,6 @@ static void find_deltas(struct object_entry **list, int window, int depth)
m = array + other_idx;
if (!m->entry)
break;
if (m->entry->no_try_delta)
continue;
if (try_delta(n, m, max_depth) < 0)
break;
}
Expand Down

0 comments on commit 6315d52

Please sign in to comment.