Conn: Remove is_version_sep()

Leftover from 2655a65331.
This commit is contained in:
Arne Welzel 2023-07-04 17:58:44 +02:00
parent 0d6174a5d6
commit 640bd4e065

View file

@ -315,18 +315,6 @@ void Connection::AppendAddl(const char* str)
cv->Assign(6, util::fmt(format, old, str)); cv->Assign(6, util::fmt(format, old, str));
} }
// Returns true if the character at s separates a version number.
static inline bool is_version_sep(const char* s, const char* end)
{
return
// foo-1.2.3
(s < end - 1 && ispunct(s[0]) && isdigit(s[1])) ||
// foo-v1.2.3
(s < end - 2 && ispunct(s[0]) && tolower(s[1]) == 'v' && isdigit(s[2])) ||
// foo 1.2.3
isspace(s[0]);
}
void Connection::Match(detail::Rule::PatternType type, const u_char* data, int len, bool is_orig, void Connection::Match(detail::Rule::PatternType type, const u_char* data, int len, bool is_orig,
bool bol, bool eol, bool clear_state) bool bol, bool eol, bool clear_state)
{ {