]> www.ginac.de Git - ginac.git/blobdiff - ginac/add.h
* mul::expand(): Considerable speedup through caching in nested loop.
[ginac.git] / ginac / add.h
index fe8d20b7c93f165d9d4cfc346c0ebc060e6dadf2..94d5c8e57bb325c2d14b06a3681d99ecbb2e334e 100644 (file)
@@ -33,7 +33,6 @@ class add : public expairseq
        GINAC_DECLARE_REGISTERED_CLASS(add, expairseq)
        
        friend class mul;
-       friend class ncmul;
        friend class power;
        
        // other constructors
@@ -79,13 +78,6 @@ protected:
 
 // utility functions
 
-/** Return the add object handled by an ex.  Deprecated: use ex_to<add>().
- *  This is unsafe: you need to check the type first. */
-inline const add &ex_to_add(const ex &e)
-{
-       return static_cast<const add &>(*e.bp);
-}
-
 /** Specialization of is_exactly_a<add>(obj) for add objects. */
 template<> inline bool is_exactly_a<add>(const basic & obj)
 {