It's not used outside the attr code, so let's keep it private. Change-Id: I0d15e0f2ea944b31d68b9cf1a4edecac0ca2170d Signed-off-by: Stefan Beller <sbeller@xxxxxxxxxx> --- attr.c | 2 +- attr.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/attr.c b/attr.c index e34b4c4..ea6d5c1 100644 --- a/attr.c +++ b/attr.c @@ -108,7 +108,7 @@ static void report_invalid_attr(const char *name, size_t len, strbuf_release(&err); } -struct git_attr *git_attr_counted(const char *name, size_t len) +static struct git_attr *git_attr_counted(const char *name, size_t len) { unsigned hval = hash_name(name, len); unsigned pos = hval % HASHSIZE; diff --git a/attr.h b/attr.h index 40abc16..f85a95f 100644 --- a/attr.h +++ b/attr.h @@ -10,9 +10,6 @@ struct git_attr; */ extern struct git_attr *git_attr(const char *); -/* The same, but with counted string */ -extern struct git_attr *git_attr_counted(const char *, size_t); - extern int attr_name_valid(const char *name, size_t namelen); extern void invalid_attr_name_message(struct strbuf *, const char *, int); -- 2.10.1.382.ga23ca1b.dirty