]> Pileus Git - ~andy/gtk/commitdiff
Remove unused variable pbuf_count. (#315282, Kjartan Maraas)
authorMatthias Clasen <mclasen@redhat.com>
Mon, 5 Sep 2005 18:36:22 +0000 (18:36 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 5 Sep 2005 18:36:22 +0000 (18:36 +0000)
2005-09-05  Matthias Clasen  <mclasen@redhat.com>

* io-tga.c (parse_rle_data): Remove unused variable
pbuf_count.  (#315282, Kjartan Maraas)

gdk-pixbuf/ChangeLog
gdk-pixbuf/io-tga.c

index 94b9ce539b50e42975bec3403d4ae8271dc61860..780ea49a1f50bac7d766484db0683d1c107862ea 100644 (file)
@@ -1,3 +1,8 @@
+2005-09-05  Matthias Clasen  <mclasen@redhat.com>
+
+       * io-tga.c (parse_rle_data): Remove unused variable
+       pbuf_count.  (#315282, Kjartan Maraas)
+
 2005-08-31  Matthias Clasen  <mclasen@redhat.com>
 
        * Makefile.am (gdk-pixbuf-enum-types.c): Intern type
index d28cf0903092ce7cdffc8a91849540fbb94efa96..2cde75f767cc38c867cd0e9b0d57bc0d3a9e9b5c 100644 (file)
@@ -632,18 +632,14 @@ static gboolean parse_rle_data(TGAContext *ctx, GError **err)
 {
        guint rows = 0;
        guint count = 0;
-       guint pbuf_count = 0;
        guint bytes_done_before = ctx->pbuf_bytes_done;
-       if (ctx->hdr->type == TGA_TYPE_RLE_PSEUDOCOLOR) {
+
+       if (ctx->hdr->type == TGA_TYPE_RLE_PSEUDOCOLOR)
                count = parse_rle_data_pseudocolor(ctx);
-               pbuf_count = count * ctx->pbuf->n_channels;
-       } else if (ctx->hdr->type == TGA_TYPE_RLE_TRUECOLOR) {
+       else if (ctx->hdr->type == TGA_TYPE_RLE_TRUECOLOR)
                count = parse_rle_data_truecolor(ctx);
-               pbuf_count = count;
-       } else if (ctx->hdr->type == TGA_TYPE_RLE_GRAYSCALE) {
+       else if (ctx->hdr->type == TGA_TYPE_RLE_GRAYSCALE)
                count = parse_rle_data_grayscale(ctx);
-               pbuf_count = count * (ctx->pbuf->n_channels == 4 ? 2 : 3);
-       }
 
        if (ctx->hdr->flags & TGA_ORIGIN_RIGHT) {
                guchar *row = ctx->pbuf->pixels + (bytes_done_before / ctx->pbuf->rowstride) * ctx->pbuf->rowstride;