[gs-commits] rev 11768 - trunk/gs/base

ken at ghostscript.com ken at ghostscript.com
Thu Oct 7 08:04:15 UTC 2010


Author: ken
Date: 2010-10-07 08:04:15 +0000 (Thu, 07 Oct 2010)
New Revision: 11768

Modified:
   trunk/gs/base/gdevpdfg.c
Log:
Remove some unused variables and assignments flagged by static analysis.

Modified: trunk/gs/base/gdevpdfg.c
===================================================================
--- trunk/gs/base/gdevpdfg.c	2010-10-07 07:57:43 UTC (rev 11767)
+++ trunk/gs/base/gdevpdfg.c	2010-10-07 08:04:15 UTC (rev 11768)
@@ -886,7 +886,7 @@
     char trs[17 + MAX_FN_CHARS + 1];
     int code = pdf_write_transfer(pdev, porder->transfer, "/TransferFunction",
 				  trs);
-    long id, spot_id;
+    long spot_id;
     stream *s;
     int i = countof(ht_functions);
     gs_memory_t *mem = pdev->pdf_memory;
@@ -935,7 +935,7 @@
 	if (code < 0) 
 	    return code;
     }	
-    *pid = id = pdf_begin_separate(pdev);
+    *pid = pdf_begin_separate(pdev);
     s = pdev->strm;
     /* Use the original, requested frequency and angle. */
     pprintg2(s, "<</Type/Halftone/HalftoneType 1/Frequency %g/Angle %g",
@@ -1002,7 +1002,6 @@
 			     const gx_ht_order *porder, long *pid)
 {
     char trs[17 + MAX_FN_CHARS + 1];
-    stream *s;
     pdf_data_writer_t writer;
     int code = pdf_write_transfer(pdev, porder->transfer, "",
 				  trs);
@@ -1010,7 +1009,6 @@
     if (code < 0)
 	return code;
     CHECK(pdf_begin_data(pdev, &writer)); 
-    s = pdev->strm;
     *pid = writer.pres->object->id;
     CHECK(cos_dict_put_c_strings((cos_dict_t *)writer.pres->object,
 	"/Type", "/Halftone"));
@@ -1040,7 +1038,6 @@
     if (code < 0)
 	return code;
     CHECK(pdf_begin_data(pdev, &writer)); 
-    s = pdev->strm;
     *pid = writer.pres->object->id;
     CHECK(cos_dict_put_c_strings((cos_dict_t *)writer.pres->object,
 	"/Type", "/Halftone"));



More information about the gs-commits mailing list