[gimp] plug-ins: simplify code a bit by removing useless variable.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: simplify code a bit by removing useless variable.
- Date: Fri, 7 Jun 2019 16:52:45 +0000 (UTC)
commit 8cd3f5a8536aa29a2280db24777c9a566d5accd6
Author: Jehan <jehan girinstud io>
Date: Fri Jun 7 18:12:58 2019 +0200
plug-ins: simplify code a bit by removing useless variable.
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]