Fix possible crash when removing ports with jack1
[ardour.git] / libs / canvas / framed_curve.cc
index b1e0952b1f8abc9d92dbc5f5f5fc91f27886fa1c..7a4046a6862475c07a8dc7dce80c85bbea27a3d8 100644 (file)
@@ -85,15 +85,8 @@ FramedCurve::interpolate ()
        }
        samples.clear ();
 
-       if (_points.size() == 3) {
-               samples.push_back (curve_points.front());
-               samples.push_back (curve_points.back());
-               n_samples = 2;
-       } else {
-
-               InterpolatedCurve::interpolate (curve_points, points_per_segment, CatmullRomCentripetal, false, samples);
-               n_samples = samples.size();
-       }
+       InterpolatedCurve::interpolate (curve_points, points_per_segment, CatmullRomCentripetal, false, samples);
+       n_samples = samples.size();
 }
 
 void