From 84ebcf26ac5ac91fcfceb67c226167cbc08a4929 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Thu, 3 Oct 2019 23:08:24 +0200 Subject: [PATCH] Trivialize pseries::eval(). Since 1.7.0, the elements are eval()'ed, so there's nothing to do any more for pseries::eval(). --- ginac/pseries.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/ginac/pseries.cpp b/ginac/pseries.cpp index 063722b1..ad6706c2 100644 --- a/ginac/pseries.cpp +++ b/ginac/pseries.cpp @@ -394,17 +394,7 @@ ex pseries::collect(const ex &s, bool distributed) const /** Perform coefficient-wise automatic term rewriting rules in this class. */ ex pseries::eval() const { - if (flags & status_flags::evaluated) { - return *this; - } - - // Construct a new series with evaluated coefficients - epvector new_seq; - new_seq.reserve(seq.size()); - for (auto & it : seq) - new_seq.emplace_back(expair(it.rest, it.coeff)); - - return dynallocate(relational(var,point), std::move(new_seq)).setflag(status_flags::evaluated); + return hold(); } /** Evaluate coefficients numerically. */ -- 2.44.0