From: Nguyễn Thái Ngọc Duy Date: Sun, 26 May 2013 01:16:16 +0000 (+0700) Subject: index-pack: remove dead code (it should never happen) X-Git-Tag: v1.8.4-rc0~205^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=920734b069b269937b25a692d21c1623cbaec4b0;p=thirdparty%2Fgit.git index-pack: remove dead code (it should never happen) Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano --- diff --git a/builtin/index-pack.c b/builtin/index-pack.c index 79dfe47320..f52a04f645 100644 --- a/builtin/index-pack.c +++ b/builtin/index-pack.c @@ -747,8 +747,7 @@ static void sha1_object(const void *data, struct object_entry *obj_entry, int eaten; void *buf = (void *) data; - if (!buf) - buf = new_data = get_data_from_pack(obj_entry); + assert(data && "data can only be NULL for large _blobs_"); /* * we do not need to free the memory here, as the