Fixed a bug introduced in last commit.
[ginac.git] / ginac / expairseq.cpp
index 88d986e..2649b4b 100644 (file)
@@ -375,28 +375,6 @@ ex expairseq::conjugate() const
        return result;
 }
 
-bool expairseq::is_polynomial(const ex & var) const
-{
-       if (is_exactly_a<add>(*this)) {
-               for (epvector::const_iterator i=seq.begin(); i!=seq.end(); ++i) {
-                       if (!(i->rest).is_polynomial(var)) {
-                               return false;
-                       }
-               }
-       }
-       else if (is_exactly_a<mul>(*this)) {
-               for (epvector::const_iterator i=seq.begin(); i!=seq.end(); ++i) {
-                       if (!(i->rest).is_polynomial(var) || !(i->coeff.info(info_flags::integer))) {
-                               return false;
-                       }
-               }
-       }
-       else {
-               return basic::is_polynomial(var);
-       }
-       return true;
-}
-
 bool expairseq::match(const ex & pattern, exmap & repl_lst) const
 {
        // This differs from basic::match() because we want "a+b+c+d" to