changeset 1050:6a270ab021ce

Remove unused parameter in a_Dicache_write()
author corvid <corvid@lavabit.com>
date Thu, 23 Apr 2009 10:21:17 -0400
parents a913df1621ac
children 1e9c9cd8be73
files src/dicache.c src/dicache.h src/gif.c src/jpeg.c src/png.c
diffstat 5 files changed, 6 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/src/dicache.c	Thu Apr 23 11:49:25 2009 +0200
+++ b/src/dicache.c	Thu Apr 23 10:21:17 2009 -0400
@@ -333,13 +333,11 @@
  * buf: row buffer
  * Y  : row number
  */
-void a_Dicache_write(DilloImage *Image, DilloUrl *url, int version,
-                     const uchar_t *buf, uint_t Y)
+void a_Dicache_write(DilloUrl *url, int version, const uchar_t *buf, uint_t Y)
 {
    DICacheEntry *DicEntry;
 
    _MSG("a_Dicache_write\n");
-   dReturn_if_fail ( Image != NULL );
    DicEntry = a_Dicache_get_entry(url, version);
    dReturn_if_fail ( DicEntry != NULL );
    dReturn_if_fail ( DicEntry->width > 0 && DicEntry->height > 0 );
--- a/src/dicache.h	Thu Apr 23 11:49:25 2009 +0200
+++ b/src/dicache.h	Thu Apr 23 10:21:17 2009 -0400
@@ -68,8 +68,7 @@
                         const uchar_t *cmap, uint_t num_colors,
                         int num_colors_max, int bg_index);
 void a_Dicache_new_scan(const DilloUrl *url, int version);
-void a_Dicache_write(DilloImage *Image, DilloUrl *url, int version,
-                     const uchar_t *buf, uint_t Y);
+void a_Dicache_write(DilloUrl *url, int version, const uchar_t *buf, uint_t Y);
 void a_Dicache_close(DilloUrl *url, int version, CacheClient_t *Client);
 
 void a_Dicache_invalidate_entry(const DilloUrl *Url);
--- a/src/gif.c	Thu Apr 23 11:49:25 2009 +0200
+++ b/src/gif.c	Thu Apr 23 10:21:17 2009 -0400
@@ -376,7 +376,7 @@
  */
 static void Gif_emit_line(DilloGif *gif, const uchar_t *linebuf)
 {
-   a_Dicache_write(gif->Image, gif->url, gif->version, linebuf, gif->y);
+   a_Dicache_write(gif->url, gif->version, linebuf, gif->y);
    if (gif->Flags & INTERLACE) {
       switch (gif->pass) {
       case 0:
--- a/src/jpeg.c	Thu Apr 23 11:49:25 2009 +0200
+++ b/src/jpeg.c	Thu Apr 23 10:21:17 2009 -0400
@@ -316,8 +316,7 @@
             /* out of input */
             break;
          }
-         a_Dicache_write(jpeg->Image, jpeg->url, jpeg->version,
-                         linebuf, jpeg->y);
+         a_Dicache_write(jpeg->url, jpeg->version, linebuf, jpeg->y);
 
          jpeg->y++;
 
--- a/src/png.c	Thu Apr 23 11:49:25 2009 +0200
+++ b/src/png.c	Thu Apr 23 10:21:17 2009 -0400
@@ -230,7 +230,7 @@
 
    switch (png->channels) {
    case 3:
-      a_Dicache_write(png->Image, png->url, png->version,
+      a_Dicache_write(png->url, png->version,
                       png->image_data + (row_num * png->rowbytes),
                       (uint_t)row_num);
       break;
@@ -268,8 +268,7 @@
               data++;
            }
         }
-        a_Dicache_write(png->Image, png->url, png->version,
-                        png->linebuf, (uint_t)row_num);
+        a_Dicache_write(png->url, png->version, png->linebuf, (uint_t)row_num);
         break;
      }
    default: