From c8c420aa18cb8bf805bd1287ca917e073a2b87cd Mon Sep 17 00:00:00 2001 From: Bruno Lopes Date: Sat, 28 Mar 2026 14:44:48 -0300 Subject: [PATCH] app, plug-ins: Comment pixel, total, flags and count unused variables --- app/core/gimpimage-color-profile.c | 15 +++++++-------- app/xcf/xcf-load.c | 6 +++--- plug-ins/common/file-paa.c | 6 +++--- plug-ins/selection-to-path/fit.c | 6 +++--- 4 files changed, 16 insertions(+), 17 deletions(-) diff --git a/app/core/gimpimage-color-profile.c b/app/core/gimpimage-color-profile.c index a0c40c7bf3..a2755e7c3c 100644 --- a/app/core/gimpimage-color-profile.c +++ b/app/core/gimpimage-color-profile.c @@ -993,19 +993,18 @@ gimp_image_convert_profile_colormap (GimpImage *image, GimpProgress *progress) { GimpImagePrivate *private = GIMP_IMAGE_GET_PRIVATE (image); - GimpColorTransformFlags flags = 0; + /*GimpColorTransformFlags flags = 0;*/ GimpPalette *palette; const Babl *space; const Babl *format; + /* TODO: current implementation ignores the black point compensation + * choice because babl doesn't have BCP support yet. + * Previous code was using gimp_color_transform_new() which used + * LittleCMS directly instead. + * This should be fixed. if (bpc) - /* TODO: current implementation ignores the black point compensation - * choice because babl doesn't have BCP support yet. - * Previous code was using gimp_color_transform_new() which used - * LittleCMS directly instead. - * This should be fixed. - */ - flags |= GIMP_COLOR_TRANSFORM_FLAGS_BLACK_POINT_COMPENSATION; + flags |= GIMP_COLOR_TRANSFORM_FLAGS_BLACK_POINT_COMPENSATION; */ palette = gimp_image_get_colormap_palette (image); space = gimp_image_get_layer_space (image); diff --git a/app/xcf/xcf-load.c b/app/xcf/xcf-load.c index cf3542b977..9aa2f4899d 100644 --- a/app/xcf/xcf-load.c +++ b/app/xcf/xcf-load.c @@ -4939,7 +4939,7 @@ xcf_load_tile_rle (XcfInfo *info, { guchar *data = tile_data + i; gint size = tile_rect->width * tile_rect->height; - gint count = 0; + /*gint count = 0;*/ guchar val; gint length; gint j; @@ -4968,7 +4968,7 @@ xcf_load_tile_rle (XcfInfo *info, xcfdata += 2; } - count += length; + /*count += length;*/ size -= length; if (size < 0) @@ -5002,7 +5002,7 @@ xcf_load_tile_rle (XcfInfo *info, xcfdata += 2; } - count += length; + /*count += length;*/ size -= length; if (size < 0) diff --git a/plug-ins/common/file-paa.c b/plug-ins/common/file-paa.c index 38c52d2a29..3028b2ecc4 100644 --- a/plug-ins/common/file-paa.c +++ b/plug-ins/common/file-paa.c @@ -487,7 +487,7 @@ decode_lzss (guchar *raw_data, gint flag = 0; gint raw_index = 0; gint data_index = 0; - guchar pixel = 0; + /*guchar pixel = 0;*/ if (estimated_size <= 0) return FALSE; @@ -504,7 +504,7 @@ decode_lzss (guchar *raw_data, { guchar value = raw_data[raw_index++]; - pixel += (gchar) value; + /*pixel += (gchar) value;*/ uncompressed_data[data_index++] = value; estimated_size--; @@ -530,7 +530,7 @@ decode_lzss (guchar *raw_data, { gint value = (gint) char_array[offset & 4095]; - pixel += (gchar) value; + /*pixel += (gchar) value;*/ uncompressed_data[data_index++] = (guchar) value; estimated_size--; diff --git a/plug-ins/selection-to-path/fit.c b/plug-ins/selection-to-path/fit.c index f46932a65a..6ba65e07e1 100644 --- a/plug-ins/selection-to-path/fit.c +++ b/plug-ins/selection-to-path/fit.c @@ -186,7 +186,7 @@ spline_list_array_type fitted_splines (pixel_outline_list_type pixel_outline_list) { unsigned this_list; - unsigned total = 0; + /*unsigned total = 0;*/ spline_list_array_type char_splines = new_spline_list_array (); curve_list_array_type curve_array = split_at_corners (pixel_outline_list); @@ -204,12 +204,12 @@ fitted_splines (pixel_outline_list_type pixel_outline_list) free_curve_list_array (&curve_array); - for (this_list = 0; this_list < SPLINE_LIST_ARRAY_LENGTH (char_splines); + /*for (this_list = 0; this_list < SPLINE_LIST_ARRAY_LENGTH (char_splines); this_list++) total += SPLINE_LIST_LENGTH (SPLINE_LIST_ARRAY_ELT (char_splines, this_list)); -/* REPORT1 ("=%u", total); */ + REPORT1 ("=%u", total); */ return char_splines; }