mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
Remove unused and potentially unsafe function ListVal::IncludedInString
This commit is contained in:
parent
ca2cdd8861
commit
09c2491896
2 changed files with 0 additions and 24 deletions
17
src/Val.cc
17
src/Val.cc
|
@ -1171,23 +1171,6 @@ ListVal::~ListVal()
|
|||
Unref(type);
|
||||
}
|
||||
|
||||
const char* ListVal::IncludedInString(const char* str) const
|
||||
{
|
||||
if ( tag != TYPE_STRING )
|
||||
Internal("non-string list in ListVal::IncludedInString");
|
||||
|
||||
loop_over_list(vals, i)
|
||||
{
|
||||
const char* vs = (const char*) (vals[i]->AsString()->Bytes());
|
||||
|
||||
const char* embedded = strstr(str, vs);
|
||||
if ( embedded )
|
||||
return embedded;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
RE_Matcher* ListVal::BuildRE() const
|
||||
{
|
||||
if ( tag != TYPE_STRING )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue