app, plug-ins: Comment pixel, total, flags and count unused variables
This commit is contained in:
parent
0cb6d9cf7b
commit
c8c420aa18
4 changed files with 16 additions and 17 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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--;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue