From 55d3426929d4d8c3dec402cabe6fb1bf27d6abad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Thu, 22 Jun 2017 21:38:08 +0000 Subject: wildmatch: remove unused wildopts parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Junio C Hamano --- wildmatch.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'wildmatch.h') diff --git a/wildmatch.h b/wildmatch.h index 4090c8f4bb..b8c826aa68 100644 --- a/wildmatch.h +++ b/wildmatch.h @@ -10,9 +10,5 @@ #define WM_ABORT_ALL -1 #define WM_ABORT_TO_STARSTAR -2 -struct wildopts; - -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); #endif -- cgit v1.2.3