[cairo-commit] src/cairo-pdf-surface.c src/cairo-ps-surface.c src/cairo-svg-surface.c

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu Jan 11 15:24:58 PST 2007


 src/cairo-pdf-surface.c |    3 +--
 src/cairo-ps-surface.c  |    3 +--
 src/cairo-svg-surface.c |    3 +--
 3 files changed, 3 insertions(+), 6 deletions(-)

New commits:
diff-tree 1002d016834926a771aa0a6cc4bdf83cb009173a (from eff6d3c7a013476a7e4cf56c05ad95c9f01fe793)
Author: Kjartan Maraas <kmaraas at gnome.org>
Date:   Thu Jan 11 17:59:16 2007 -0500

    Remove unused variables (#7963)

diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c
index 640b67e..821ea5f 100644
--- a/src/cairo-pdf-surface.c
+++ b/src/cairo-pdf-surface.c
@@ -1980,7 +1980,7 @@ _cairo_pdf_surface_emit_bitmap_glyph (ca
     cairo_status_t status;
     cairo_image_surface_t *image;
     unsigned char *row, *byte;
-    int rows, cols, bytes_per_row;
+    int rows, cols;
 
     status = _cairo_scaled_glyph_lookup (scaled_font,
 					 glyph_index,
@@ -2025,7 +2025,6 @@ _cairo_pdf_surface_emit_bitmap_glyph (ca
 
     _cairo_output_stream_printf (surface->output,
 				 "ID ");
-    bytes_per_row = (image->width + 7) / 8;
     for (row = image->data, rows = image->height; rows; row += image->stride, rows--) {
 	for (byte = row, cols = (image->width + 7) / 8; cols; byte++, cols--) {
 	    unsigned char output_byte = CAIRO_BITSWAP8_IF_LITTLE_ENDIAN (*byte);
diff --git a/src/cairo-ps-surface.c b/src/cairo-ps-surface.c
index efdc3c4..45d9fe7 100644
--- a/src/cairo-ps-surface.c
+++ b/src/cairo-ps-surface.c
@@ -572,7 +572,7 @@ _cairo_ps_surface_emit_bitmap_glyph_data
     cairo_status_t status;
     cairo_image_surface_t *image;
     unsigned char *row, *byte;
-    int rows, cols, bytes_per_row;
+    int rows, cols;
 
     status = _cairo_scaled_glyph_lookup (scaled_font,
 					 glyph_index,
@@ -613,7 +613,6 @@ _cairo_ps_surface_emit_bitmap_glyph_data
 
     _cairo_output_stream_printf (surface->final_stream,
 				 "   /DataSource   {<");
-    bytes_per_row = (image->width + 7) / 8;
     for (row = image->data, rows = image->height; rows; row += image->stride, rows--) {
 	for (byte = row, cols = (image->width + 7) / 8; cols; byte++, cols--) {
 	    unsigned char output_byte = CAIRO_BITSWAP8_IF_LITTLE_ENDIAN (*byte);
diff --git a/src/cairo-svg-surface.c b/src/cairo-svg-surface.c
index 573fb3c..534ba01 100644
--- a/src/cairo-svg-surface.c
+++ b/src/cairo-svg-surface.c
@@ -623,7 +623,7 @@ _cairo_svg_document_emit_bitmap_glyph_da
     cairo_scaled_glyph_t *scaled_glyph;
     cairo_status_t status;
     unsigned char *row, *byte;
-    int rows, cols, bytes_per_row;
+    int rows, cols;
     int x, y, bit;
 
     status = _cairo_scaled_glyph_lookup (scaled_font,
@@ -644,7 +644,6 @@ _cairo_svg_document_emit_bitmap_glyph_da
     _cairo_output_stream_printf (document->xml_node_glyphs, "<g");
     emit_transform (document->xml_node_glyphs, " transform", ">/n", &image->base.device_transform);
 
-    bytes_per_row = (image->width + 7) / 8;
     for (y = 0, row = image->data, rows = image->height; rows; row += image->stride, rows--, y++) {
 	for (x = 0, byte = row, cols = (image->width + 7) / 8; cols; byte++, cols--) {
 	    unsigned char output_byte = CAIRO_BITSWAP8_IF_LITTLE_ENDIAN (*byte);


More information about the cairo-commit mailing list