From 189a1222493f73977291f57d0f2030e982aff282 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Sat, 18 Oct 2014 22:03:19 -0400 Subject: drop add_object_array_with_mode This is a thin compatibility wrapper around add_pending_object_with_path. But the only caller is add_object_array, which is itself just a thin compatibility wrapper. There are no external callers, so we can just remove this middle wrapper. Noticed-by: Ramsay Jones Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- object.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'object.c') diff --git a/object.c b/object.c index df86bdd5a5..23d6c96719 100644 --- a/object.c +++ b/object.c @@ -341,12 +341,7 @@ void add_object_array_with_path(struct object *obj, const char *name, void add_object_array(struct object *obj, const char *name, struct object_array *array) { - add_object_array_with_mode(obj, name, array, S_IFINVALID); -} - -void add_object_array_with_mode(struct object *obj, const char *name, struct object_array *array, unsigned mode) -{ - add_object_array_with_path(obj, name, array, mode, NULL); + add_object_array_with_path(obj, name, array, S_IFINVALID, NULL); } /* -- cgit v1.2.3