From d752225d05551bda0dfa6c63e083de7d188815af Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Fri, 3 Oct 2014 17:00:38 -0500 Subject: [PATCH] [libpng16] Removed "text_len" parameter from private function png_write_zTXt() since it is unused. --- ANNOUNCE | 5 +++-- CHANGES | 3 ++- pngpriv.h | 2 +- pngwio.c | 2 +- pngwrite.c | 8 +++----- pngwutil.c | 3 +-- 6 files changed, 11 insertions(+), 12 deletions(-) diff --git a/ANNOUNCE b/ANNOUNCE index 8447119ef..6cf3e4190 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -1,4 +1,4 @@ -Libpng 1.6.14beta06 - October 1, 2014 +Libpng 1.6.14beta06 - October 3, 2014 This is not intended to be a public release. It will be replaced within a few weeks by a public version or by another test version. @@ -54,7 +54,8 @@ Version 1.6.14beta04 [September 27, 2014] Version 1.6.14beta05 [October 1, 2014] Added "option READ_iCCP enables READ_COMPRESSED_TEXT" to pnglibconf.dfa -Version 1.6.14beta06 [October 1, 2014] +Version 1.6.14beta06 [October 3, 2014] + Removed unused "text_len" parameter from private function png_write_zTXt(). Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/CHANGES b/CHANGES index c38e4be06..e2f6d3d27 100644 --- a/CHANGES +++ b/CHANGES @@ -5007,7 +5007,8 @@ Version 1.6.14beta04 [September 27, 2014] Version 1.6.14beta05 [October 1, 2014] Added "option READ_iCCP enables READ_COMPRESSED_TEXT" to pnglibconf.dfa -Version 1.6.14beta06 [October 1, 2014] +Version 1.6.14beta06 [October 3, 2014] + Removed unused "text_len" parameter from private function png_write_zTXt(). Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/pngpriv.h b/pngpriv.h index 71a5ab456..aa63cfa47 100644 --- a/pngpriv.h +++ b/pngpriv.h @@ -1090,7 +1090,7 @@ PNG_INTERNAL_FUNCTION(void,png_write_tEXt,(png_structrp png_ptr, #ifdef PNG_WRITE_zTXt_SUPPORTED PNG_INTERNAL_FUNCTION(void,png_write_zTXt,(png_structrp png_ptr, png_const_charp - key, png_const_charp text, png_size_t text_len, int compression),PNG_EMPTY); + key, png_const_charp text, int compression),PNG_EMPTY); #endif #ifdef PNG_WRITE_iTXt_SUPPORTED diff --git a/pngwio.c b/pngwio.c index 1b525f948..dfe8546ba 100644 --- a/pngwio.c +++ b/pngwio.c @@ -1,7 +1,7 @@ /* pngwio.c - functions for data output * - * Last changed in libpng 1.6.9 [February 6, 2014] + * Last changed in libpng 1.6.14 [(PENDING RELEASE)] * Copyright (c) 1998-2014 Glenn Randers-Pehrson * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) diff --git a/pngwrite.c b/pngwrite.c index f03aeb2ce..ee78afcde 100644 --- a/pngwrite.c +++ b/pngwrite.c @@ -1,7 +1,7 @@ /* pngwrite.c - general routines to write a PNG file * - * Last changed in libpng 1.6.11 [June 5, 2014] + * Last changed in libpng 1.6.14 [(PENDING RELEASE)] * Copyright (c) 1998-2014 Glenn Randers-Pehrson * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) @@ -305,8 +305,7 @@ png_write_info(png_structrp png_ptr, png_const_inforp info_ptr) #ifdef PNG_WRITE_zTXt_SUPPORTED /* Write compressed chunk */ png_write_zTXt(png_ptr, info_ptr->text[i].key, - info_ptr->text[i].text, 0, - info_ptr->text[i].compression); + info_ptr->text[i].text, info_ptr->text[i].compression); #else png_warning(png_ptr, "Unable to write compressed text"); #endif @@ -399,8 +398,7 @@ png_write_end(png_structrp png_ptr, png_inforp info_ptr) #ifdef PNG_WRITE_zTXt_SUPPORTED /* Write compressed chunk */ png_write_zTXt(png_ptr, info_ptr->text[i].key, - info_ptr->text[i].text, 0, - info_ptr->text[i].compression); + info_ptr->text[i].text, info_ptr->text[i].compression); #else png_warning(png_ptr, "Unable to write compressed text"); #endif diff --git a/pngwutil.c b/pngwutil.c index 8a0b7f2ec..7990a3b52 100644 --- a/pngwutil.c +++ b/pngwutil.c @@ -1621,14 +1621,13 @@ png_write_tEXt(png_structrp png_ptr, png_const_charp key, png_const_charp text, /* Write a compressed text chunk */ void /* PRIVATE */ png_write_zTXt(png_structrp png_ptr, png_const_charp key, png_const_charp text, - png_size_t text_len, int compression) + int compression) { png_uint_32 key_len; png_byte new_key[81]; compression_state comp; png_debug(1, "in png_write_zTXt"); - PNG_UNUSED(text_len) /* Always use strlen */ if (compression == PNG_TEXT_COMPRESSION_NONE) {