From d8e27cdd2c142eefb0c99eac9f8861b4e5e64027 Mon Sep 17 00:00:00 2001 From: corvid Date: Thu, 23 Apr 2009 10:21:17 -0400 Subject: Remove unused parameter in a_Dicache_write() --- src/dicache.c | 4 +--- src/dicache.h | 3 +-- src/gif.c | 2 +- src/jpeg.c | 3 +-- src/png.c | 5 ++--- 5 files changed, 6 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/dicache.c b/src/dicache.c index 109f1b36..00bc5204 100644 --- a/src/dicache.c +++ b/src/dicache.c @@ -333,13 +333,11 @@ void a_Dicache_new_scan(const DilloUrl *url, int version) * 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 ); diff --git a/src/dicache.h b/src/dicache.h index ae8b2f37..b4ef714d 100644 --- a/src/dicache.h +++ b/src/dicache.h @@ -68,8 +68,7 @@ void a_Dicache_set_cmap(DilloUrl *url, int version, DilloImage *Image, 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); diff --git a/src/gif.c b/src/gif.c index ac54030d..2301b648 100644 --- a/src/gif.c +++ b/src/gif.c @@ -376,7 +376,7 @@ static void Gif_lwz_init(DilloGif *gif) */ 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: diff --git a/src/jpeg.c b/src/jpeg.c index 0a35e4c7..9d611ba8 100644 --- a/src/jpeg.c +++ b/src/jpeg.c @@ -316,8 +316,7 @@ static void Jpeg_write(DilloJpeg *jpeg, void *Buf, uint_t BufSize) /* 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++; diff --git a/src/png.c b/src/png.c index 805624a3..b6900db1 100644 --- a/src/png.c +++ b/src/png.c @@ -230,7 +230,7 @@ static void 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 @@ static void 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: -- cgit v1.2.3