diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2017-06-22 23:38:08 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-24 03:27:07 +0200 |
commit | 55d3426929d4d8c3dec402cabe6fb1bf27d6abad (patch) | |
tree | 1b037524961e2fc22f891e0e2c2a5dde72f8c0df /wildmatch.c | |
parent | Tenth batch for 2.14 (diff) | |
download | git-55d3426929d4d8c3dec402cabe6fb1bf27d6abad.tar.xz git-55d3426929d4d8c3dec402cabe6fb1bf27d6abad.zip |
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>
Diffstat (limited to 'wildmatch.c')
-rw-r--r-- | wildmatch.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/wildmatch.c b/wildmatch.c index 57c8765805..d074c1be10 100644 --- a/wildmatch.c +++ b/wildmatch.c @@ -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); } |