[gimp/metadata-browser] file-save-pdf: Remove redundant code (cppcheck report)



commit cbded7fc522b785b19c1cfc933065e46e960c5c2
Author: Mukund Sivaraman <muks banu com>
Date:   Thu Sep 6 07:23:05 2012 +0530

    file-save-pdf: Remove redundant code (cppcheck report)

 plug-ins/common/file-pdf-save.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/plug-ins/common/file-pdf-save.c b/plug-ins/common/file-pdf-save.c
index 6296845..a78ea79 100644
--- a/plug-ins/common/file-pdf-save.c
+++ b/plug-ins/common/file-pdf-save.c
@@ -1257,15 +1257,6 @@ get_drawable_image (GimpDrawable *drawable)
   switch (bpp)
     {
     case 1: /* GRAY or INDEXED */
-      if (! indexed)
-        {
-          format = CAIRO_FORMAT_RGB24;
-        }
-      else
-        {
-          format = CAIRO_FORMAT_RGB24;
-        }
-      break;
     case 3: /* RGB */
       format = CAIRO_FORMAT_RGB24;
       break;



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