From e58227e1112f989f3b5417e497a61d53fc2971fa Mon Sep 17 00:00:00 2001 From: Christian Bauer Date: Wed, 14 Feb 2001 19:04:18 +0000 Subject: [PATCH] removed the "some_*" and "typeid_*" definitions since we are using our own RTTI for quite some time now --- ginac/add.cpp | 19 ------------------- ginac/add.h | 5 ----- ginac/basic.cpp | 7 ------- ginac/basic.h | 5 ----- ginac/clifford.cpp | 25 ------------------------- ginac/clifford.h | 5 ----- ginac/color.cpp | 23 ----------------------- ginac/color.h | 5 ----- ginac/coloridx.cpp | 25 ------------------------- ginac/coloridx.h | 5 ----- ginac/constant.cpp | 5 ++--- ginac/constant.h | 5 ----- ginac/expairseq.cpp | 7 ------- ginac/expairseq.h | 5 ----- ginac/fail.cpp | 32 -------------------------------- ginac/fail.h | 5 ----- ginac/idx.cpp | 7 ------- ginac/idx.h | 5 ----- ginac/indexed.cpp | 13 ------------- ginac/indexed.h | 5 ----- ginac/isospin.cpp | 7 ------- ginac/isospin.h | 5 ----- ginac/lorentzidx.cpp | 19 ------------------- ginac/lorentzidx.h | 5 ----- ginac/lortensor.cpp | 7 ------- ginac/lortensor.h | 5 ----- ginac/matrix.cpp | 7 ------- ginac/matrix.h | 5 ----- ginac/mul.cpp | 8 -------- ginac/mul.h | 5 ----- ginac/ncmul.cpp | 8 -------- ginac/ncmul.h | 5 ----- ginac/numeric.cpp | 2 -- ginac/numeric.h | 2 -- ginac/power.cpp | 7 ------- ginac/power.h | 5 ----- ginac/pseries.cpp | 7 ------- ginac/pseries.h | 4 ---- ginac/relational.cpp | 7 ------- ginac/relational.h | 5 ----- ginac/simp_lor.cpp | 7 ------- ginac/simp_lor.h | 5 ----- ginac/structure.cpp | 13 ------------- ginac/structure.h | 5 ----- ginac/symbol.cpp | 7 ------- ginac/symbol.h | 5 ----- 46 files changed, 2 insertions(+), 378 deletions(-) diff --git a/ginac/add.cpp b/ginac/add.cpp index 3e43a4e2..74a37328 100644 --- a/ginac/add.cpp +++ b/ginac/add.cpp @@ -542,18 +542,6 @@ ex add::expand(unsigned options) const return (new add(vp,overall_coeff))->setflag(status_flags::expanded | status_flags::dynallocated); } -////////// -// new virtual functions which can be overridden by derived classes -////////// - -// none - -////////// -// non-virtual functions in this class -////////// - -// none - ////////// // static member variables ////////// @@ -562,13 +550,6 @@ ex add::expand(unsigned options) const unsigned add::precedence = 40; -////////// -// global constants -////////// - -const add some_add; -const std::type_info & typeid_add = typeid(some_add); - #ifndef NO_NAMESPACE_GINAC } // namespace GiNaC #endif // ndef NO_NAMESPACE_GINAC diff --git a/ginac/add.h b/ginac/add.h index 529f4945..c30034df 100644 --- a/ginac/add.h +++ b/ginac/add.h @@ -105,11 +105,6 @@ protected: static unsigned precedence; }; -// global constants - -extern const add some_add; -extern const std::type_info & typeid_add; - // utility functions inline const add &ex_to_add(const ex &e) { diff --git a/ginac/basic.cpp b/ginac/basic.cpp index a2b0cdd4..daefabb8 100644 --- a/ginac/basic.cpp +++ b/ginac/basic.cpp @@ -533,13 +533,6 @@ void basic::ensure_if_modifiable(void) const unsigned basic::precedence = 70; unsigned basic::delta_indent = 4; -////////// -// global constants -////////// - -const basic some_basic; -const std::type_info & typeid_basic = typeid(some_basic); - ////////// // global variables ////////// diff --git a/ginac/basic.h b/ginac/basic.h index 97ec96e8..05ee4f23 100644 --- a/ginac/basic.h +++ b/ginac/basic.h @@ -187,11 +187,6 @@ private: unsigned refcount; }; -// global constants - -extern const basic some_basic; -extern const std::type_info & typeid_basic; - // global variables extern int max_recursion_level; diff --git a/ginac/clifford.cpp b/ginac/clifford.cpp index 8ab70652..37e1d8df 100644 --- a/ginac/clifford.cpp +++ b/ginac/clifford.cpp @@ -204,24 +204,6 @@ ex clifford::simplify_ncmul(const exvector & v) const return simplified_ncmul(v); } -////////// -// virtual functions which can be overridden by derived classes -////////// - -// none - -////////// -// non-virtual functions in this class -////////// - -// none - -////////// -// static member variables -////////// - -// none - ////////// // friend functions ////////// @@ -236,13 +218,6 @@ clifford clifford_gamma(const ex & mu) return clifford("gamma", mu); } -////////// -// global constants -////////// - -const clifford some_clifford; -const std::type_info & typeid_clifford = typeid(some_clifford); - #ifndef NO_NAMESPACE_GINAC } // namespace GiNaC #endif // ndef NO_NAMESPACE_GINAC diff --git a/ginac/clifford.h b/ginac/clifford.h index 4f0bb6b7..e7b05f53 100644 --- a/ginac/clifford.h +++ b/ginac/clifford.h @@ -85,11 +85,6 @@ protected: // none }; -// global constants - -extern const clifford some_clifford; -extern const std::type_info & typeid_clifford; - // global functions inline const clifford &ex_to_clifford(const ex &e) { diff --git a/ginac/color.cpp b/ginac/color.cpp index bb0837de..9f3b3000 100644 --- a/ginac/color.cpp +++ b/ginac/color.cpp @@ -648,29 +648,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 ////////// diff --git a/ginac/color.h b/ginac/color.h index f416b633..2b607e3c 100644 --- a/ginac/color.h +++ b/ginac/color.h @@ -143,11 +143,6 @@ protected: unsigned representation_label; /**< Representation label to distiguish independent color matrices coming from separated fermion lines */ }; -// global constants - -extern const color some_color; -extern const std::type_info & typeid_color; - // global functions inline const color &ex_to_color(const ex &e) { diff --git a/ginac/coloridx.cpp b/ginac/coloridx.cpp index 368aef08..b9568a85 100644 --- a/ginac/coloridx.cpp +++ b/ginac/coloridx.cpp @@ -235,31 +235,6 @@ bool coloridx::info(unsigned inf) const return idx::info(inf); } -////////// -// new virtual functions which can be overridden by derived classes -////////// - -// none - -////////// -// non-virtual functions in this class -////////// - -// none - -////////// -// static member variables -////////// - -// none - -////////// -// global constants -////////// - -const coloridx some_coloridx; -const std::type_info & typeid_coloridx = typeid(some_coloridx); - #ifndef NO_NAMESPACE_GINAC } // namespace GiNaC #endif // ndef NO_NAMESPACE_GINAC diff --git a/ginac/coloridx.h b/ginac/coloridx.h index d9424e58..4b40a3a7 100644 --- a/ginac/coloridx.h +++ b/ginac/coloridx.h @@ -82,11 +82,6 @@ public: // none }; -// global constants - -extern const coloridx some_coloridx; -extern const std::type_info & typeid_coloridx; - // utility functions inline const coloridx &ex_to_coloridx(const ex &e) { diff --git a/ginac/constant.cpp b/ginac/constant.cpp index 0286b0e9..3e6c667d 100644 --- a/ginac/constant.cpp +++ b/ginac/constant.cpp @@ -234,14 +234,13 @@ unsigned constant::next_serial=0; // global constants ////////// -const constant some_constant; -const std::type_info & typeid_constant = typeid(some_constant); - /** Pi. (3.14159...) Diverts straight into CLN for evalf(). */ const constant Pi("Pi", PiEvalf); + /** Euler's constant. (0.57721...) Sometimes called Euler-Mascheroni constant. * Diverts straight into CLN for evalf(). */ const constant Euler("Euler", EulerEvalf); + /** Catalan's constant. (0.91597...) Diverts straight into CLN for evalf(). */ const constant Catalan("Catalan", CatalanEvalf); diff --git a/ginac/constant.h b/ginac/constant.h index fa67f70e..70b2816e 100644 --- a/ginac/constant.h +++ b/ginac/constant.h @@ -87,11 +87,6 @@ private: static unsigned next_serial; }; -// global constants - -extern const constant some_constant; -extern const std::type_info & typeid_constant; - extern const constant Pi; extern const constant Catalan; extern const constant Euler; diff --git a/ginac/expairseq.cpp b/ginac/expairseq.cpp index d25c8f34..3daa4da5 100644 --- a/ginac/expairseq.cpp +++ b/ginac/expairseq.cpp @@ -1729,13 +1729,6 @@ unsigned expairseq::minhashtabsize=0x1000U; unsigned expairseq::hashtabfactor=1; #endif // def EXPAIRSEQ_USE_HASHTAB -////////// -// global constants -////////// - -const expairseq some_expairseq; -const std::type_info & typeid_expairseq = typeid(some_expairseq); - #ifndef NO_NAMESPACE_GINAC } // namespace GiNaC #endif // ndef NO_NAMESPACE_GINAC diff --git a/ginac/expairseq.h b/ginac/expairseq.h index b6d8a4ed..d9cc0b31 100644 --- a/ginac/expairseq.h +++ b/ginac/expairseq.h @@ -194,11 +194,6 @@ protected: #endif // def EXPAIRSEQ_USE_HASHTAB }; -// global constants - -extern const expairseq some_expairseq; -extern const std::type_info & typeid_expairseq; - // utility functions inline const expairseq &ex_to_expairseq(const ex &e) { diff --git a/ginac/fail.cpp b/ginac/fail.cpp index bfacd79a..8a281e8a 100644 --- a/ginac/fail.cpp +++ b/ginac/fail.cpp @@ -76,13 +76,6 @@ void fail::destroy(bool call_parent) if (call_parent) inherited::destroy(call_parent); } - -////////// -// other constructors -////////// - -// none - ////////// // archiving ////////// @@ -137,31 +130,6 @@ int fail::compare_same_type(const basic & other) const return 0; } -////////// -// new virtual functions which can be overridden by derived classes -////////// - -// none - -////////// -// non-virtual functions in this class -////////// - -// none - -////////// -// static member variables -////////// - -// none - -////////// -// global constants -////////// - -const fail some_fail; -const std::type_info & typeid_fail = typeid(some_fail); - #ifndef NO_NAMESPACE_GINAC } // namespace GiNaC #endif // ndef NO_NAMESPACE_GINAC diff --git a/ginac/fail.h b/ginac/fail.h index 0e9ac5e6..d6bf22d0 100644 --- a/ginac/fail.h +++ b/ginac/fail.h @@ -66,11 +66,6 @@ protected: // none }; -// global constants - -extern const fail some_fail; -extern const std::type_info & typeid_fail; - #ifndef NO_NAMESPACE_GINAC } // namespace GiNaC #endif // ndef NO_NAMESPACE_GINAC diff --git a/ginac/idx.cpp b/ginac/idx.cpp index 0b2c61cb..34d5c854 100644 --- a/ginac/idx.cpp +++ b/ginac/idx.cpp @@ -384,13 +384,6 @@ std::string & idx::autoname_prefix(void) unsigned idx::next_serial=0; -////////// -// global constants -////////// - -const idx some_idx; -const std::type_info & typeid_idx = typeid(some_idx); - ////////// // other functions ////////// diff --git a/ginac/idx.h b/ginac/idx.h index 88492c08..8b991ac1 100644 --- a/ginac/idx.h +++ b/ginac/idx.h @@ -102,11 +102,6 @@ protected: bool covariant; /**< x_mu, default is contravariant: x~mu */ }; -// global constants - -extern const idx some_idx; -extern const std::type_info & typeid_idx; - // utility functions inline const idx &ex_to_idx(const ex &e) { diff --git a/ginac/indexed.cpp b/ginac/indexed.cpp index 5dbbf8be..8e05dbf2 100644 --- a/ginac/indexed.cpp +++ b/ginac/indexed.cpp @@ -338,19 +338,6 @@ bool indexed::all_of_type_idx(void) const return true; } -////////// -// static member variables -////////// - -// none - -////////// -// global constants -////////// - -const indexed some_indexed; -const std::type_info & typeid_indexed = typeid(some_indexed); - #ifndef NO_NAMESPACE_GINAC } // namespace GiNaC #endif // ndef NO_NAMESPACE_GINAC diff --git a/ginac/indexed.h b/ginac/indexed.h index 2ff8c3a1..c43d4ade 100644 --- a/ginac/indexed.h +++ b/ginac/indexed.h @@ -92,11 +92,6 @@ protected: // none }; -// global constants - -extern const indexed some_indexed; -extern const std::type_info & typeid_indexed; - // utility functions inline const indexed &ex_to_indexed(const ex &e) { diff --git a/ginac/isospin.cpp b/ginac/isospin.cpp index cd6d45ca..911c86f4 100644 --- a/ginac/isospin.cpp +++ b/ginac/isospin.cpp @@ -244,13 +244,6 @@ std::string & isospin::autoname_prefix(void) unsigned isospin::next_serial=0; -////////// -// global constants -////////// - -const isospin some_isospin; -const std::type_info & typeid_isospin = typeid(some_isospin); - #ifndef NO_NAMESPACE_GINAC } // namespace GiNaC #endif // ndef NO_NAMESPACE_GINAC diff --git a/ginac/isospin.h b/ginac/isospin.h index 7ce9c5ef..313c1309 100644 --- a/ginac/isospin.h +++ b/ginac/isospin.h @@ -82,11 +82,6 @@ private: static unsigned next_serial; }; -// global constants - -extern const isospin some_isospin; -extern const std::type_info & typeid_isospin; - // utility functions inline const isospin &ex_to_isospin(const ex &e) { diff --git a/ginac/lorentzidx.cpp b/ginac/lorentzidx.cpp index ed6da8a2..67e5576b 100644 --- a/ginac/lorentzidx.cpp +++ b/ginac/lorentzidx.cpp @@ -282,12 +282,6 @@ bool lorentzidx::info(unsigned inf) const return inherited::info(inf); } -////////// -// new virtual functions which can be overridden by derived classes -////////// - -// none - ////////// // non-virtual functions in this class ////////// @@ -307,12 +301,6 @@ lorentzidx lorentzidx::create_anonymous_representative(void) const return i_copy; } -////////// -// static member variables -////////// - -// none - ////////// // global functions ////////// @@ -324,13 +312,6 @@ ex Dim(void) return *d; } -////////// -// global constants -////////// - -const lorentzidx some_lorentzidx; -const std::type_info & typeid_lorentzidx = typeid(some_lorentzidx); - #ifndef NO_NAMESPACE_GINAC } // namespace GiNaC #endif // ndef NO_NAMESPACE_GINAC diff --git a/ginac/lorentzidx.h b/ginac/lorentzidx.h index c10d2366..3d5355b7 100644 --- a/ginac/lorentzidx.h +++ b/ginac/lorentzidx.h @@ -94,11 +94,6 @@ protected: unsigned dim_parallel_space; /**< Dimension of parallel space */ }; -// global constants - -extern const lorentzidx some_lorentzidx; -extern const std::type_info & typeid_lorentzidx; - // utility functions inline const lorentzidx &ex_to_lorentzidx(const ex &e) { diff --git a/ginac/lortensor.cpp b/ginac/lortensor.cpp index 5d841366..0238adcb 100644 --- a/ginac/lortensor.cpp +++ b/ginac/lortensor.cpp @@ -600,13 +600,6 @@ ex simplify_lortensor(const ex & e) return e_expanded; } -////////// -// global constants -////////// - -const lortensor some_lortensor; -const std::type_info & typeid_lortensor = typeid(some_lortensor); - #ifndef NO_NAMESPACE_GINAC } // namespace GiNaC #endif // ndef NO_NAMESPACE_GINAC diff --git a/ginac/lortensor.h b/ginac/lortensor.h index 95af0241..977be984 100644 --- a/ginac/lortensor.h +++ b/ginac/lortensor.h @@ -126,11 +126,6 @@ private: static unsigned next_serial; }; -// global constants - -extern const lortensor some_lortensor; -extern const std::type_info & typeid_lortensor; - // utility functions inline const lortensor & ex_to_lortensor(const ex &e) diff --git a/ginac/matrix.cpp b/ginac/matrix.cpp index d66567c9..ec7ee2c8 100644 --- a/ginac/matrix.cpp +++ b/ginac/matrix.cpp @@ -1220,13 +1220,6 @@ ex lst_to_matrix(const ex &l) return m; } -////////// -// global constants -////////// - -const matrix some_matrix; -const std::type_info & typeid_matrix = typeid(some_matrix); - #ifndef NO_NAMESPACE_GINAC } // namespace GiNaC #endif // ndef NO_NAMESPACE_GINAC diff --git a/ginac/matrix.h b/ginac/matrix.h index 00dee531..279ddfc1 100644 --- a/ginac/matrix.h +++ b/ginac/matrix.h @@ -109,11 +109,6 @@ protected: }; -// global constants -extern const matrix some_matrix; -extern const std::type_info & typeid_matrix; - - // wrapper functions around member functions inline unsigned nops(const matrix & m) diff --git a/ginac/mul.cpp b/ginac/mul.cpp index f3fa4417..23927729 100644 --- a/ginac/mul.cpp +++ b/ginac/mul.cpp @@ -770,14 +770,6 @@ epvector * mul::expandchildren(unsigned options) const unsigned mul::precedence = 50; - -////////// -// global constants -////////// - -const mul some_mul; -const std::type_info & typeid_mul = typeid(some_mul); - #ifndef NO_NAMESPACE_GINAC } // namespace GiNaC #endif // ndef NO_NAMESPACE_GINAC diff --git a/ginac/mul.h b/ginac/mul.h index af6826f9..78954963 100644 --- a/ginac/mul.h +++ b/ginac/mul.h @@ -112,11 +112,6 @@ protected: static unsigned precedence; }; -// global constants - -extern const mul some_mul; -extern const std::type_info & typeid_mul; - // utility functions inline const mul &ex_to_mul(const ex &e) { diff --git a/ginac/ncmul.cpp b/ginac/ncmul.cpp index 1318b387..8964d6b7 100644 --- a/ginac/ncmul.cpp +++ b/ginac/ncmul.cpp @@ -626,14 +626,6 @@ const exvector & ncmul::get_factors(void) const unsigned ncmul::precedence=50; - -////////// -// global constants -////////// - -const ncmul some_ncmul; -const std::type_info & typeid_ncmul = typeid(some_ncmul); - ////////// // friend functions ////////// diff --git a/ginac/ncmul.h b/ginac/ncmul.h index 9445d750..a604eead 100644 --- a/ginac/ncmul.h +++ b/ginac/ncmul.h @@ -102,11 +102,6 @@ protected: static unsigned precedence; }; -// global constants - -extern const ncmul some_ncmul; -extern const std::type_info & typeid_ncmul; - // friend funtions ex nonsimplified_ncmul(const exvector & v); diff --git a/ginac/numeric.cpp b/ginac/numeric.cpp index 024a846a..32bb7fb2 100644 --- a/ginac/numeric.cpp +++ b/ginac/numeric.cpp @@ -1250,8 +1250,6 @@ unsigned numeric::precedence = 30; // global constants ////////// -const numeric some_numeric; -const std::type_info & typeid_numeric = typeid(some_numeric); /** Imaginary unit. This is not a constant but a numeric since we are * natively handing complex numbers anyways. */ const numeric I = numeric(cln::complex(cln::cl_I(0),cln::cl_I(1))); diff --git a/ginac/numeric.h b/ginac/numeric.h index c519eccb..247951aa 100644 --- a/ginac/numeric.h +++ b/ginac/numeric.h @@ -186,9 +186,7 @@ protected: // global constants -extern const numeric some_numeric; extern const numeric I; -extern const std::type_info & typeid_numeric; extern _numeric_digits Digits; //#define is_a_numeric_hash(x) ((x)==HASHVALUE_NUMERIC) diff --git a/ginac/power.cpp b/ginac/power.cpp index efddc393..9d224d1b 100644 --- a/ginac/power.cpp +++ b/ginac/power.cpp @@ -887,13 +887,6 @@ ex power::expand_noncommutative(const ex & basis, const numeric & exponent, unsigned power::precedence = 60; -////////// -// global constants -////////// - -const power some_power; -const std::type_info & typeid_power=typeid(some_power); - // helper function ex sqrt(const ex & a) diff --git a/ginac/power.h b/ginac/power.h index fe562a3c..6bdafa00 100644 --- a/ginac/power.h +++ b/ginac/power.h @@ -105,11 +105,6 @@ protected: static unsigned precedence; }; -// global constants - -extern const power some_power; -extern const std::type_info & typeid_power; - // utility functions inline const power &ex_to_power(const ex &e) { diff --git a/ginac/pseries.cpp b/ginac/pseries.cpp index de0e45cc..36fb4429 100644 --- a/ginac/pseries.cpp +++ b/ginac/pseries.cpp @@ -901,13 +901,6 @@ ex ex::series(const ex & r, int order, unsigned options) const unsigned pseries::precedence = 38; // for clarity just below add::precedence -////////// -// global constants -////////// - -const pseries some_pseries; -const std::type_info & typeid_pseries = typeid(some_pseries); - #ifndef NO_NAMESPACE_GINAC } // namespace GiNaC #endif // ndef NO_NAMESPACE_GINAC diff --git a/ginac/pseries.h b/ginac/pseries.h index fbff5135..0b0d92f1 100644 --- a/ginac/pseries.h +++ b/ginac/pseries.h @@ -98,10 +98,6 @@ protected: static unsigned precedence; }; -// global constants -extern const pseries some_pseries; -extern const std::type_info & typeid_pseries; - /** Return a reference to the pseries object embedded in an expression. * The result is undefined if the expression does not contain a pseries * object at its top level. diff --git a/ginac/relational.cpp b/ginac/relational.cpp index e540c214..7ed651c9 100644 --- a/ginac/relational.cpp +++ b/ginac/relational.cpp @@ -396,13 +396,6 @@ relational::operator bool() const unsigned relational::precedence=20; -////////// -// global constants -////////// - -const relational some_relational; -const std::type_info & typeid_relational = typeid(some_relational); - #ifndef NO_NAMESPACE_GINAC } // namespace GiNaC #endif // ndef NO_NAMESPACE_GINAC diff --git a/ginac/relational.h b/ginac/relational.h index 6d8039d3..85d9db1d 100644 --- a/ginac/relational.h +++ b/ginac/relational.h @@ -99,11 +99,6 @@ protected: static unsigned precedence; }; -// global constants - -extern const relational some_relational; -extern const std::type_info & typeid_relational; - // utility functions inline const relational &ex_to_relational(const ex &e) { diff --git a/ginac/simp_lor.cpp b/ginac/simp_lor.cpp index 0850a3ad..06e79da1 100644 --- a/ginac/simp_lor.cpp +++ b/ginac/simp_lor.cpp @@ -308,13 +308,6 @@ bool simp_lor::all_of_type_lorentzidx(void) const // none -////////// -// global constants -////////// - -const simp_lor some_simp_lor; -const std::type_info & typeid_simp_lor = typeid(some_simp_lor); - ////////// // friend functions ////////// diff --git a/ginac/simp_lor.h b/ginac/simp_lor.h index 277f0aa6..8a626217 100644 --- a/ginac/simp_lor.h +++ b/ginac/simp_lor.h @@ -138,11 +138,6 @@ protected: std::string name; }; -// global constants - -extern const simp_lor some_simp_lor; -extern const std::type_info & typeid_simp_lor; - // utility functions inline const simp_lor &ex_to_simp_lor(const ex &e) { diff --git a/ginac/structure.cpp b/ginac/structure.cpp index 34b24f34..ddd953df 100644 --- a/ginac/structure.cpp +++ b/ginac/structure.cpp @@ -165,19 +165,6 @@ unsigned structure::register_new(const char * nm) return registered_structures().size()-1; } -////////// -// static member variables -////////// - -// none - -////////// -// global constants -////////// - -const structure some_structure; -const std::type_info & typeid_structure = typeid(some_structure); - #ifndef NO_NAMESPACE_GINAC } // namespace GiNaC #endif // ndef NO_NAMESPACE_GINAC diff --git a/ginac/structure.h b/ginac/structure.h index 0ec0b6cd..28abe6ad 100644 --- a/ginac/structure.h +++ b/ginac/structure.h @@ -81,11 +81,6 @@ public: }; -// global constants - -extern const structure some_structure; -extern const std::type_info & typeid_structure; - #ifndef NO_NAMESPACE_GINAC } // namespace GiNaC #endif // ndef NO_NAMESPACE_GINAC diff --git a/ginac/symbol.cpp b/ginac/symbol.cpp index edc27046..7ff75ec7 100644 --- a/ginac/symbol.cpp +++ b/ginac/symbol.cpp @@ -352,13 +352,6 @@ unsigned symbol::next_serial=0; // std::string const symbol::autoname_prefix="symbol"; -////////// -// global constants -////////// - -const symbol some_symbol; -const std::type_info & typeid_symbol = typeid(some_symbol); - ////////// // subclass assigned_ex_info ////////// diff --git a/ginac/symbol.h b/ginac/symbol.h index 927e0b53..20c5468b 100644 --- a/ginac/symbol.h +++ b/ginac/symbol.h @@ -112,11 +112,6 @@ private: static unsigned next_serial; }; -// global constants - -extern const symbol some_symbol; -extern const std::type_info & typeid_symbol; - // utility functions inline const symbol &ex_to_symbol(const ex &e) { -- 2.50.0