Remove unnecessary and possibly problematic optimization

https://bugs.launchpad.net/kicad/+bug/1280897
This commit is contained in:
Chris Pavlina 2016-05-30 08:26:39 -04:00
parent a27ad2beca
commit e8dba1c14b
1 changed files with 0 additions and 8 deletions

View File

@ -201,8 +201,6 @@ FILE_LINE_READER::FILE_LINE_READER( const wxString& aFileName,
THROW_IO_ERROR( msg ); THROW_IO_ERROR( msg );
} }
setvbuf( fp, NULL, _IOFBF, BUFSIZ * 8 );
source = aFileName; source = aFileName;
lineNum = aStartingLineNumber; lineNum = aStartingLineNumber;
} }
@ -216,12 +214,6 @@ FILE_LINE_READER::FILE_LINE_READER( FILE* aFile, const wxString& aFileName,
iOwn( doOwn ), iOwn( doOwn ),
fp( aFile ) fp( aFile )
{ {
if( doOwn && ftell( aFile ) == 0L )
{
#ifndef __WXMAC__
setvbuf( fp, NULL, _IOFBF, BUFSIZ * 8 );
#endif
}
source = aFileName; source = aFileName;
lineNum = aStartingLineNumber; lineNum = aStartingLineNumber;
} }