From a8c40471ab0851bf9a58f7dc76f121258e0690e2 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Wed, 21 Mar 2007 10:07:46 -0700 Subject: Remove "pathlen" from "struct name_entry" Since we have the "tree_entry_len()" helper function these days, and don't need to do a full strlen(), there's no point in saving the path length - it's just redundant information. Signed-off-by: Linus Torvalds Signed-off-by: Junio C Hamano --- tree-walk.h | 1 - 1 file changed, 1 deletion(-) (limited to 'tree-walk.h') diff --git a/tree-walk.h b/tree-walk.h index a0d7afd89b..149393aaa4 100644 --- a/tree-walk.h +++ b/tree-walk.h @@ -10,7 +10,6 @@ struct name_entry { const unsigned char *sha1; const char *path; unsigned int mode; - int pathlen; }; static inline int tree_entry_len(const char *name, const unsigned char *sha1) -- cgit v1.2.3