From 9b1d0de350e4d5675d8ea34c59bc0435802df945 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] --- v2/engine/headers.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/v2/engine/headers.c b/v2/engine/headers.c index 33ec87c04..fec58a51c 100644 --- a/v2/engine/headers.c +++ b/v2/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 ] ) {