From: Junio C Hamano Date: Tue, 12 Jan 2010 07:52:59 GMT Subject: [PATCH 16/18] blob.c: remove unused function Message-ID: <1263282781-25596-17-git-send-email-gitster@pobox.com> In-Reply-To: <1263282781-25596-1-git-send-email-gitster@pobox.com> parse_blob() is not used anywhere since a510bfa (Mark blobs as parsed when they're actually parsed, 2005-04-28). Signed-off-by: Junio C Hamano --- blob.c | 21 --------------------- blob.h | 2 -- 2 files changed, 0 insertions(+), 23 deletions(-) diff --git a/blob.c b/blob.c index bd7d078..ae320bd 100644 --- a/blob.c +++ b/blob.c @@ -23,24 +23,3 @@ int parse_blob_buffer(struct blob *item, void *buffer, unsigned long size) item->object.parsed = 1; return 0; } - -int parse_blob(struct blob *item) -{ - enum object_type type; - void *buffer; - unsigned long size; - int ret; - - if (item->object.parsed) - return 0; - buffer = read_sha1_file(item->object.sha1, &type, &size); - if (!buffer) - return error("Could not read %s", - sha1_to_hex(item->object.sha1)); - if (type != OBJ_BLOB) - return error("Object %s not a blob", - sha1_to_hex(item->object.sha1)); - ret = parse_blob_buffer(item, buffer, size); - free(buffer); - return ret; -} diff --git a/blob.h b/blob.h index ea5d9e9..1f66b9d 100644 --- a/blob.h +++ b/blob.h @@ -13,6 +13,4 @@ struct blob *lookup_blob(const unsigned char *sha1); int parse_blob_buffer(struct blob *item, void *buffer, unsigned long size); -int parse_blob(struct blob *item); - #endif /* BLOB_H */ -- 1.6.6.280.ge295b7.dirty