diff --git a/Code/Hyperspectral/otbEigenvalueLikelihoodMaximisation.txx b/Code/Hyperspectral/otbEigenvalueLikelihoodMaximisation.txx
index a5a26004f8c0618a2c5c54a7a6392f1e46e6fe9b..bccb4993a3bed74c0a0066941bcc1a65ade7f33a 100644
--- a/Code/Hyperspectral/otbEigenvalueLikelihoodMaximisation.txx
+++ b/Code/Hyperspectral/otbEigenvalueLikelihoodMaximisation.txx
@@ -27,10 +27,6 @@ for details.
 namespace otb
 {
 
-static double EigenvalueLikelihoodMaximisationSquare(const double x){
-  return x*x;
-}
-
 template<class TPrecision>
 EigenvalueLikelihoodMaximisation<TPrecision>
 ::EigenvalueLikelihoodMaximisation()