mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Remove unused ListExpr::AllConst method
This commit is contained in:
parent
0817b2d16a
commit
a5a08b3bf3
2 changed files with 0 additions and 12 deletions
|
@ -4512,15 +4512,6 @@ bool ListExpr::IsPure() const
|
|||
return true;
|
||||
}
|
||||
|
||||
bool ListExpr::AllConst() const
|
||||
{
|
||||
for ( const auto& expr : exprs )
|
||||
if ( ! expr->IsConst() )
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
IntrusivePtr<Val> ListExpr::Eval(Frame* f) const
|
||||
{
|
||||
auto v = make_intrusive<ListVal>(TYPE_ANY);
|
||||
|
|
|
@ -858,9 +858,6 @@ public:
|
|||
// True if the entire list represents pure values.
|
||||
bool IsPure() const override;
|
||||
|
||||
// True if the entire list represents constant values.
|
||||
bool AllConst() const;
|
||||
|
||||
IntrusivePtr<Val> Eval(Frame* f) const override;
|
||||
|
||||
IntrusivePtr<BroType> InitType() const override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue