From: Junio C Hamano Date: Wed, 23 May 2007 06:04:49 +0000 (-0700) Subject: builtin-pack-objects: remove unnecessary code for no-delta X-Git-Tag: v1.5.3-rc0~184^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=6315d52a84e4e6016acf7095ce4c88abffad6496;p=git-core%2Fgit.git 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 --- diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c index 225d311e4..eca130f05 100644 --- a/builtin-pack-objects.c +++ b/builtin-pack-objects.c @@ -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; }