From 64494521bff2bdd136edab9ca2184abe6fa627e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Sun, 22 Jul 2012 16:05:58 +0000 Subject: [PATCH] Boost Jam cleanup - removed defective header parsing code seemingly intended for stripping trailing newline characters from read lines. This code has never done anything since it was originally added so there seems no reason to 'fix' it to do what it 'seems to have been intended to do'. [SVN r79674] --- src/engine/headers.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/engine/headers.c b/src/engine/headers.c index 33ec87c04..fec58a51c 100644 --- a/src/engine/headers.c +++ b/src/engine/headers.c @@ -147,16 +147,6 @@ LIST * headers1( LIST * l, OBJECT * file, int rec, regexp * re[] ) while ( fgets( buf, sizeof( buf ), f ) ) { - int size = strlen( buf ); - /* Remove trailing \r and \n, if any. */ - while ( ( size > 0 ) && - ( buf[ size - 1 ] == '\n' ) && - ( buf[ size - 1 ] == '\r' ) ) - { - buf[ size - 1 ] = '\0'; - --size; - } - for ( i = 0; i < rec; ++i ) if ( regexec( re[ i ], buf ) && re[ i ]->startp[ 1 ] ) {