Skip to content
Snippets Groups Projects
Commit adec994e authored by Van Herck, Walter's avatar Van Herck, Walter
Browse files

Removed commented and obsolete code

parent f5ff8572
No related branches found
No related tags found
No related merge requests found
...@@ -109,14 +109,6 @@ double BasicVector3D<double>::cosTheta() const ...@@ -109,14 +109,6 @@ double BasicVector3D<double>::cosTheta() const
return std::abs(ma) == 0 ? 1 : z()/ma; return std::abs(ma) == 0 ? 1 : z()/ma;
} }
// //! @TODO eliminate this, it is plain wrong
// template<>
//complex_t BasicVector3D<complex_t>::cosTheta() const
//{
// complex_t ma = mag();
// return std::abs(ma) == 0 ? 1 : z()/ma;
//}
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// Combine two vectors // Combine two vectors
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
...@@ -144,16 +136,6 @@ BasicVector3D<double> BasicVector3D<double>::cross( ...@@ -144,16 +136,6 @@ BasicVector3D<double> BasicVector3D<double>::cross(
x()*v.y()-v.x()*y()); x()*v.y()-v.x()*y());
} }
// //! @TODO check usage: unlikely to be correct
// template<>
// BasicVector3D<complex_t> BasicVector3D<complex_t>::cross(
// const BasicVector3D<complex_t>& v) const
//{
// return BasicVector3D<complex_t>(y()*v.z()-v.y()*z(),
// z()*v.x()-v.z()*x(),
// x()*v.y()-v.x()*y());
//}
//! Returns square of transverse component with respect to given axis. //! Returns square of transverse component with respect to given axis.
template<> template<>
double BasicVector3D<double>::perp2(const BasicVector3D<double>& v) const double BasicVector3D<double>::perp2(const BasicVector3D<double>& v) const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment