From a5a08b3bf3dd266cbc15633e63bbc4f0b378d503 Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Tue, 24 Mar 2020 13:01:54 -0700 Subject: [PATCH] Remove unused ListExpr::AllConst method --- src/Expr.cc | 9 --------- src/Expr.h | 3 --- 2 files changed, 12 deletions(-) diff --git a/src/Expr.cc b/src/Expr.cc index f1407b4137..028d2645d9 100644 --- a/src/Expr.cc +++ b/src/Expr.cc @@ -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 ListExpr::Eval(Frame* f) const { auto v = make_intrusive(TYPE_ANY); diff --git a/src/Expr.h b/src/Expr.h index e42c4a611b..979b0ee250 100644 --- a/src/Expr.h +++ b/src/Expr.h @@ -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 Eval(Frame* f) const override; IntrusivePtr InitType() const override;