diff --git a/Modules/Applications/AppClassification/include/otbTrainVectorBase.h b/Modules/Applications/AppClassification/include/otbTrainVectorBase.h
index bc5c716aef98324bcd14882b451fc2636dbfe9cc..e4572f8f5bea29bdfaebd10271701218e358b68b 100644
--- a/Modules/Applications/AppClassification/include/otbTrainVectorBase.h
+++ b/Modules/Applications/AppClassification/include/otbTrainVectorBase.h
@@ -185,12 +185,6 @@ protected:
   void DoInit() override;
   void DoUpdateParameters() override;
   void DoExecute() override;
-
-private:
-  /**
-   * Get the field of the input feature corresponding to the input field
-   */
-  inline TOutputValue GetFeatureField(const ogr::Feature& feature, int field);
 };
 
 }
diff --git a/Modules/Applications/AppClassification/include/otbTrainVectorBase.hxx b/Modules/Applications/AppClassification/include/otbTrainVectorBase.hxx
index b0c6803c36ed0a6630f334bf7dc59ceaed4b1be4..eaaa8bee3189933a532c3c21abbde7a65dc77e87 100644
--- a/Modules/Applications/AppClassification/include/otbTrainVectorBase.hxx
+++ b/Modules/Applications/AppClassification/include/otbTrainVectorBase.hxx
@@ -237,23 +237,6 @@ TrainVectorBase<TInputValue, TOutputValue>
   return measurement;
 }
 
-// Template specialization for the integer case (i.e.classification), to avoid a cast from double to integer
-template <>
-inline int
-TrainVectorBase<float, int>
-::GetFeatureField(const ogr::Feature & feature, int fieldIndex)
-{
-  return(feature[fieldIndex].GetValue<int>());
-}
-
-template <class TInputValue, class TOutputValue>
-inline TOutputValue
-TrainVectorBase<TInputValue, TOutputValue>
-::GetFeatureField(const ogr::Feature & feature, int fieldIndex)
-{
-  return(feature[fieldIndex].GetValue<double>());
-}
-
 template <class TInputValue, class TOutputValue>
 typename TrainVectorBase<TInputValue, TOutputValue>::SamplesWithLabel
 TrainVectorBase<TInputValue, TOutputValue>