]> www.ginac.de Git - ginac.git/blobdiff - ginac/constant.h
- Cleanups: My evil plot of making ex::bp private may finally be carried
[ginac.git] / ginac / constant.h
index bdd8d69e79d16b3a5e1612a167341d19b6786627..c43465ae6f732485d0fcf12b82f62e371bf494df 100644 (file)
@@ -81,13 +81,6 @@ extern const constant Euler;
 
 // utility functions
 
-/** Return the constant object handled by an ex.  Deprecated: use ex_to<constant>().
- *  This is unsafe: you need to check the type first. */
-inline const constant &ex_to_constant(const ex &e)
-{
-       return static_cast<const constant &>(*e.bp);
-}
-
 /** Specialization of is_exactly_a<constant>(obj) for constant objects. */
 template<> inline bool is_exactly_a<constant>(const basic & obj)
 {