mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
wildmatch: remove unused wildopts parameter
Remove the unused wildopts placeholder struct from being passed to all
wildmatch() invocations, or rather remove all the boilerplate NULL
parameters.
This parameter was added back in commit 9b3497cab9 ("wildmatch: rename
constants and update prototype", 2013-01-01) as a placeholder for
future use. Over 4 years later nothing has made use of it, let's just
remove it. It can be added in the future if we find some reason to
start using such a parameter.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
5402b1352f
commit
55d3426929
@@ -272,8 +272,7 @@ static int dowild(const uchar *p, const uchar *text, unsigned int flags)
|
||||
}
|
||||
|
||||
/* Match the "pattern" against the "text" string. */
|
||||
int wildmatch(const char *pattern, const char *text,
|
||||
unsigned int flags, struct wildopts *wo)
|
||||
int wildmatch(const char *pattern, const char *text, unsigned int flags)
|
||||
{
|
||||
return dowild((const uchar*)pattern, (const uchar*)text, flags);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user