From 245f264c043f0ee10b5b01c42a0a5ca3a9ee48e8 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Tue, 1 Dec 2020 11:43:43 -0800 Subject: [PATCH] Remove a suspicious 'unused' declaration for wildcard_complete_internal This function is used and so is its return value, at all call sites. --- src/wildcard.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/wildcard.cpp b/src/wildcard.cpp index db6519d84..db3405a0a 100644 --- a/src/wildcard.cpp +++ b/src/wildcard.cpp @@ -206,17 +206,6 @@ static bool has_prefix_match(const completion_list_t *comps, size_t first) { /// /// We ignore ANY_STRING_RECURSIVE here. The consequence is that you cannot tab complete ** /// wildcards. This is historic behavior. -static bool wildcard_complete_internal(const wchar_t *const str, size_t str_len, - const wchar_t *const wc, size_t wc_len, - const wc_complete_pack_t ¶ms, complete_flags_t flags, - completion_list_t *out, bool is_first_call); -__attribute__((unused)) static bool wildcard_complete_internal( - const wchar_t *const str, const wchar_t *const wc, const wc_complete_pack_t ¶ms, - complete_flags_t flags, completion_list_t *out, bool is_first_call = false) { - return wildcard_complete_internal(str, std::wcslen(str), wc, std::wcslen(wc), params, flags, - out, is_first_call); -} - static bool wildcard_complete_internal(const wchar_t *const str, size_t str_len, const wchar_t *const wc, size_t wc_len, const wc_complete_pack_t ¶ms, complete_flags_t flags,