From 731766e9bce56ebd283d0617a74721579ca7b6cb Mon Sep 17 00:00:00 2001 From: Alx Sa Date: Wed, 12 Mar 2025 20:29:54 +0000 Subject: [PATCH] vectors: Remove debug printout when Snap to Active Path on Resolves #13096 In 5a43a464, some debug output was added to help diagnosis a problem when Snap to Active Path was turned on. The issue seemed mostly resolved in e57ad0f8, but the print statements were left in. This leads to slowdown when moving layers while Snap is enabled (due to the continuous print statements). As it's been 19 years since the original commit, it should be fine to remove these debug statements to boost performance. --- app/vectors/gimpbezierstroke.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/vectors/gimpbezierstroke.c b/app/vectors/gimpbezierstroke.c index f17584e7c7..e331eb8760 100644 --- a/app/vectors/gimpbezierstroke.c +++ b/app/vectors/gimpbezierstroke.c @@ -977,9 +977,6 @@ gimp_bezier_stroke_segment_nearest_tangent_get (const GimpCoords *beziercoords, ret_coords = g_array_new (FALSE, FALSE, sizeof (GimpCoords)); ret_params = g_array_new (FALSE, FALSE, sizeof (gdouble)); - g_printerr ("(%.2f, %.2f)-(%.2f,%.2f): ", coord1->x, coord1->y, - coord2->x, coord2->y); - gimp_coords_interpolate_bezier (beziercoords, precision, ret_coords, ret_params); @@ -1030,12 +1027,6 @@ gimp_bezier_stroke_segment_nearest_tangent_get (const GimpCoords *beziercoords, ori = ori2; } - if (min_dist < 0) - g_printerr ("-\n"); - else - g_printerr ("%f: (%.2f, %.2f) /%.3f/\n", min_dist, - (*ret_point).x, (*ret_point).y, *ret_pos); - g_array_free (ret_coords, TRUE); g_array_free (ret_params, TRUE);