X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fcolor.cpp;h=9e355cb01a4118184d994bd1d865a7962a9dfc4d;hp=bb0837de859adb2fb5bc7d95aad9cca570c0e5d1;hb=dad107ff48f68d45e72469a8716df375ae145cf3;hpb=dc074d042a23f07350f0c2c68a2477763a5aaba0 diff --git a/ginac/color.cpp b/ginac/color.cpp index bb0837de..9e355cb0 100644 --- a/ginac/color.cpp +++ b/ginac/color.cpp @@ -37,9 +37,7 @@ #include "debugmsg.h" #include "utils.h" -#ifndef NO_NAMESPACE_GINAC namespace GiNaC { -#endif // ndef NO_NAMESPACE_GINAC GINAC_IMPLEMENT_REGISTERED_CLASS(color, indexed) @@ -54,28 +52,6 @@ color::color() : inherited(TINFO_color), type(invalid), representation_label(0) debugmsg("color default constructor",LOGLEVEL_CONSTRUCT); } -color::~color() -{ - debugmsg("color destructor",LOGLEVEL_DESTRUCT); - destroy(false); -} - -color::color(const color & other) -{ - debugmsg("color copy constructor",LOGLEVEL_CONSTRUCT); - copy (other); -} - -const color & color::operator=(const color & other) -{ - debugmsg("color operator=",LOGLEVEL_ASSIGNMENT); - if (this != &other) { - destroy(true); - copy(other); - } - return *this; -} - // protected void color::copy(const color & other) @@ -203,12 +179,6 @@ void color::archive(archive_node &n) const // public -basic * color::duplicate() const -{ - debugmsg("color duplicate",LOGLEVEL_DUPLICATE); - return new color(*this); -} - void color::printraw(std::ostream & os) const { debugmsg("color printraw",LOGLEVEL_PRINT); @@ -648,29 +618,6 @@ bool color::all_of_type_coloridx(void) const return true; } -////////// -// virtual functions which can be overridden by derived classes -////////// - -// none - -////////// -// non-virtual functions in this class -////////// - -////////// -// static member variables -////////// - -// none - -////////// -// global constants -////////// - -const color some_color; -const std::type_info & typeid_color = typeid(some_color); - ////////// // friend functions ////////// @@ -1084,6 +1031,4 @@ ex brute_force_sum_color_indices(const ex & e) return sum; } -#ifndef NO_NAMESPACE_GINAC } // namespace GiNaC -#endif // ndef NO_NAMESPACE_GINAC