From 57615504d077d85987761d668f816cc72a8eb0be Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Tue, 17 Aug 2021 19:23:13 -0500 Subject: [PATCH] Eliminate variable unused after refactor of wcstringutil.cpp --- src/wcstringutil.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/wcstringutil.cpp b/src/wcstringutil.cpp index fd7c18721..aaea65e7f 100644 --- a/src/wcstringutil.cpp +++ b/src/wcstringutil.cpp @@ -182,13 +182,12 @@ maybe_t string_fuzzy_match_t::try_create(const wcstring &s } // substr samecase - size_t location; - if ((location = match_against.find(string)) != wcstring::npos) { + if (match_against.find(string) != wcstring::npos) { return string_fuzzy_match_t{contain_type_t::substr, case_fold_t::samecase}; } // substr icase - if ((location = ifind(match_against, string, true /* fuzzy */)) != wcstring::npos) { + if (ifind(match_against, string, true /* fuzzy */) != wcstring::npos) { return string_fuzzy_match_t{contain_type_t::substr, get_case_fold()}; }