summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-10-18 22:03:19 -0400
committerJunio C Hamano <gitster@pobox.com>2014-10-19 15:28:30 -0700
commit189a1222493f73977291f57d0f2030e982aff282 (patch)
tree87c9111a2dae4dd5dfe5d8b773694400e704fd6f /object.c
parentd7702be1e1c003a9a26ab60bb302c32b398e033d (diff)
downloadgit-189a1222493f73977291f57d0f2030e982aff282.tar.gz
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 <ramsay@ramsay1.demon.co.uk> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object.c')
-rw-r--r--object.c7
1 files changed, 1 insertions, 6 deletions
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);
}
/*