diff --git a/Code/DisparityMap/otbStereorectificationDeformationFieldSource.txx b/Code/DisparityMap/otbStereorectificationDeformationFieldSource.txx
index 3026d39b308e9a8d7e56bf441bcf644c7d41bbcd..cf6ff5e97a9ad90bdd3359833f7ed5e11eca5521 100644
--- a/Code/DisparityMap/otbStereorectificationDeformationFieldSource.txx
+++ b/Code/DisparityMap/otbStereorectificationDeformationFieldSource.txx
@@ -401,7 +401,7 @@ StereorectificationDeformationFieldSource<TInputImage, TOutputImage>
 
     // 3 - Next, we will compute epipolar lines direction in both
     // images
-    double a1,b1,a2,b2;
+    double a1,b1,a2;
 
     // First, for image 1
 
@@ -454,7 +454,6 @@ StereorectificationDeformationFieldSource<TInputImage, TOutputImage>
     endLine2 = m_LeftToRightTransform->TransformPoint(epiPoint1);
     
     a2 = (endLine2[1] - startLine2[1]) / (endLine2[0] - startLine2[0]);
-    b2 = startLine2[1] - a2 * startLine2[0];
 
     // 4 - Determine position of next points