From 0ab179504a17907c395a4009f7c23d2f71bba1d3 Mon Sep 17 00:00:00 2001 From: Nicolas Pitre Date: Mon, 26 Feb 2007 14:56:00 -0500 Subject: get rid of lookup_object_type() This function is called only once in the whole source tree. Let's move its code inline instead, which is also in the spirit of removing as much object type char arrays as possible (not that this patch does anything for that but at least it is now a local matter). Signed-off-by: Nicolas Pitre Signed-off-by: Junio C Hamano --- object.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'object.h') diff --git a/object.h b/object.h index 749a6f5890..bdbf0facd4 100644 --- a/object.h +++ b/object.h @@ -47,9 +47,6 @@ extern struct object_refs *lookup_object_refs(struct object *); /** Internal only **/ struct object *lookup_object(const unsigned char *sha1); -/** Returns the object, having looked it up as being the given type. **/ -struct object *lookup_object_type(const unsigned char *sha1, const char *type); - void created_object(const unsigned char *sha1, struct object *obj); /** Returns the object, having parsed it to find out what it is. **/ -- cgit v1.2.3