]> www.ginac.de Git - ginac.git/blobdiff - ginac/symbol.cpp
subs() performs "syntactic substitution" as in Maple; you can substitute
[ginac.git] / ginac / symbol.cpp
index 8547ffefede2f3059f9f38ec6eabd7496c42ac83..09e4192b689cdf27ed3f6fb5c52958bdb44011e7 100644 (file)
@@ -221,19 +221,6 @@ ex symbol::eval(int level) const
        }
 }
 
-ex symbol::subs(const lst & ls, const lst & lr) const
-{
-       GINAC_ASSERT(ls.nops() == lr.nops());
-
-       for (unsigned i=0; i<ls.nops(); i++) {
-               if (is_ex_exactly_of_type(ls.op(i),symbol)) {
-                       if (compare_same_type(ex_to_symbol(ls.op(i)))==0)
-                               return lr.op(i);
-               }
-       }
-       return *this;
-}
-
 // protected
 
 /** Implementation of ex::diff() for single differentiation of a symbol.