Remove unused SF_PRIVATE field end_of_file.

This commit is contained in:
Erik de Castro Lopo 2005-07-14 12:08:46 +00:00
parent 07ffec7ef9
commit 0777d4a596
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2005-07-14 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/flac.c
Do not use psf->end_of_file because it never gets set to anything.
* src/common.h
Remove unused SF_PRIVATE field end_of_file.
2005-07-12 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/common.c

View File

@ -216,7 +216,6 @@ typedef struct sf_private_tag
/* File descriptors for the file and (possibly) the resource fork. */
int filedes, rsrcdes ;
int end_of_file ;
int error ;
int mode ; /* Open mode : SFM_READ, SFM_WRITE or SFM_RDWR. */

View File

@ -331,7 +331,7 @@ FLAC__bool
sf_flac_eof_callback (const FLAC__SeekableStreamDecoder *UNUSED (decoder), void *client_data)
{ SF_PRIVATE *psf = (SF_PRIVATE*) client_data ;
if (psf->end_of_file)
if (psf_ftell (psf) == psf->filelength)
return SF_TRUE ;
return SF_FALSE ;