]> www.ginac.de Git - ginac.git/blobdiff - ginac/relational.cpp
Make .eval() evaluate top-level only.
[ginac.git] / ginac / relational.cpp
index 479522cf0ce8d301aea4f8eaca13ecab6fab1334..38d0baf7c757230e1b586c09e716f9343202b185 100644 (file)
@@ -176,17 +176,6 @@ ex relational::map(map_function & f) const
                return *this;
 }
 
-ex relational::eval(int level) const
-{
-       if (level==1)
-               return this->hold();
-       
-       if (level == -max_recursion_level)
-               throw(std::runtime_error("max recursion level reached"));
-       
-       return dynallocate<relational>(lh.eval(level-1), rh.eval(level-1), o).setflag(status_flags::evaluated);
-}
-
 ex relational::subs(const exmap & m, unsigned options) const
 {
        const ex & subsed_lh = lh.subs(m, options);