diff --git a/engine/src/flutter/impeller/geometry/path.cc b/engine/src/flutter/impeller/geometry/path.cc index bc4164c7cfc..7e632d72879 100644 --- a/engine/src/flutter/impeller/geometry/path.cc +++ b/engine/src/flutter/impeller/geometry/path.cc @@ -232,8 +232,6 @@ Path::Polyline Path::CreatePolyline( return; } - polyline.points.reserve(polyline.points.size() + collection.size()); - for (const auto& point : collection) { if (previous_contour_point.has_value() && previous_contour_point.value() == point) {