]> www.ginac.de Git - ginac.git/blobdiff - ginac/tensor.h
- Cleanups: My evil plot of making ex::bp private may finally be carried
[ginac.git] / ginac / tensor.h
index e30a91a4dcf41ec84070f7ceeb0fca6b5f9fe949..d3b27b6074c665fa4d4b82d1d59b7bacbc4fb2f8 100644 (file)
@@ -139,13 +139,6 @@ private:
 
 // utility functions
 
-/** Return the tensor object handled by an ex.  Deprecated: use ex_to<tensor>().
- *  This is unsafe: you need to check the type first. */
-inline const tensor &ex_to_tensor(const ex &e)
-{
-       return static_cast<const tensor &>(*e.bp);
-}
-
 /** Create a delta tensor with specified indices. The indices must be of class
  *  idx or a subclass. The delta tensor is always symmetric and its trace is
  *  the dimension of the index space.