[gimp/gimp-2-10] plug-ins: simplify code a bit by removing useless variable.



commit e7cd743b0529a61b2638ca582309dd8d6df6bdee
Author: Jehan <jehan girinstud io>
Date:   Fri Jun 7 18:12:58 2019 +0200

    plug-ins: simplify code a bit by removing useless variable.
    
    (cherry picked from commit 8cd3f5a8536aa29a2280db24777c9a566d5accd6)

 plug-ins/file-webp/file-webp-save.c | 7 -------
 1 file changed, 7 deletions(-)
---
diff --git a/plug-ins/file-webp/file-webp-save.c b/plug-ins/file-webp/file-webp-save.c
index 8c5a545049..2603a351b7 100644
--- a/plug-ins/file-webp/file-webp-save.c
+++ b/plug-ins/file-webp/file-webp-save.c
@@ -308,25 +308,18 @@ save_layer (const gchar    *filename,
 
           if (mux)
             {
-              gboolean saved = FALSE;
-
               /* Save ICC data */
               if (profile)
                 {
                   const guint8 *icc_data;
                   gsize         icc_data_size;
 
-                  saved = TRUE;
-
                   icc_data = gimp_color_profile_get_icc_profile (profile,
                                                                  &icc_data_size);
                   chunk.bytes = icc_data;
                   chunk.size = icc_data_size;
                   WebPMuxSetChunk(mux, "ICCP", &chunk, 1);
-                }
 
-              if (saved == TRUE)
-                {
                   WebPMuxAssemble (mux, &wp_data);
                   rewind (outfile);
                   webp_anim_file_writer (outfile, wp_data.bytes, wp_data.size);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]