]> www.ginac.de Git - ginac.git/blobdiff - ginac/expairseq.cpp
expairseq::match(): remove the code which works around basic::match bug.
[ginac.git] / ginac / expairseq.cpp
index 3ed9e2892a23040c8bbb8e2ce4bf3ebfed36705f..229710b2fcc922fb04fa09ae443ed84d48e2609f 100644 (file)
@@ -427,20 +427,10 @@ bool expairseq::match(const ex & pattern, lst & repl_lst) const
                                continue;
                        exvector::iterator it = ops.begin(), itend = ops.end();
                        while (it != itend) {
-                               lst::const_iterator last_el = repl_lst.end();
-                               --last_el;
                                if (it->match(p, repl_lst)) {
                                        ops.erase(it);
                                        goto found;
                                }
-                               while(true) {
-                                       lst::const_iterator next_el = last_el;
-                                       ++next_el;
-                                       if(next_el == repl_lst.end())
-                                               break;
-                                       else
-                                               repl_lst.remove_last();
-                               }
                                ++it;
                        }
                        return false; // no match found