X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fadd.h;h=9288891921a9643cba026295eebc1f3706e37442;hp=c0dfca55f8d0c96fb58af906fcda79ea88c8d76a;hb=0cbf40f6d41d256c4137a8469070e304a8480e3f;hpb=591b85b0697370f2f5f25a29a1e94ff831a02c12 diff --git a/ginac/add.h b/ginac/add.h index c0dfca55..92888919 100644 --- a/ginac/add.h +++ b/ginac/add.h @@ -3,7 +3,7 @@ * Interface to GiNaC's sums of expressions. */ /* - * GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2002 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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 @@ -44,7 +43,7 @@ public: add(const epvector & v, const ex & oc); add(epvector * vp, const ex & oc); - // functions overriding virtual functions from bases classes + // functions overriding virtual functions from base classes public: void print(const print_context & c, unsigned level = 0) const; unsigned precedence(void) const {return 40;} @@ -79,13 +78,6 @@ protected: // utility functions -/** Return the add object handled by an ex. Deprecated: use ex_to(). - * This is unsafe: you need to check the type first. */ -inline const add &ex_to_add(const ex &e) -{ - return static_cast(*e.bp); -} - /** Specialization of is_exactly_a(obj) for add objects. */ template<> inline bool is_exactly_a(const basic & obj) {