diff --git a/src/Match.cxx b/src/Match.cxx index 8ce0ae03..edcabeac 100644 --- a/src/Match.cxx +++ b/src/Match.cxx @@ -37,27 +37,6 @@ MatchExpression::Compile(const char *src, bool anchor) noexcept #endif } -bool -MatchExpression::operator()(const char *line) const noexcept -{ -#ifndef HAVE_PCRE - return anchored - ? strncasecmp(line, expression.data(), expression.size()) == 0 - : expression.find(line) != expression.npos; -#else - assert(re != nullptr); - - const auto match_data = - pcre2_match_data_create_from_pattern_8(re, nullptr); - AtScopeExit(match_data) { - pcre2_match_data_free_8(match_data); - }; - - return pcre2_match_8(re, (PCRE2_SPTR8)line, strlen(line), - 0, 0, match_data, nullptr) >= 0; -#endif -} - bool MatchExpression::operator()(std::string_view line) const noexcept { diff --git a/src/Match.hxx b/src/Match.hxx index 5b0092fa..49f236bb 100644 --- a/src/Match.hxx +++ b/src/Match.hxx @@ -30,9 +30,6 @@ public: bool Compile(const char *src, bool anchor) noexcept; - [[gnu::pure]] - bool operator()(const char *line) const noexcept; - [[gnu::pure]] bool operator()(std::string_view line) const noexcept; };