Remove unused ListExpr::AllConst method

This commit is contained in:
Tim Wojtulewicz 2020-03-24 13:01:54 -07:00
parent 0817b2d16a
commit a5a08b3bf3
2 changed files with 0 additions and 12 deletions

View file

@ -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);

View file

@ -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;