From de4dec1f7b673876ad55546bed6f44eddfa4c731 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 13 May 2008 01:19:15 +0000 Subject: [PATCH] simplify --- stepmania/src/NoteData.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/stepmania/src/NoteData.cpp b/stepmania/src/NoteData.cpp index 3e33f3164c..f024d4b3b6 100644 --- a/stepmania/src/NoteData.cpp +++ b/stepmania/src/NoteData.cpp @@ -368,7 +368,6 @@ bool NoteData::IsHoldNoteAtRow( int iTrack, int iRow, int *pHeadRow ) const if( pHeadRow == NULL ) pHeadRow = &iDummy; - bool bFoundHead = false; /* Starting at iRow, search upwards. If we find a TapNote::hold_head, we're within * a hold. If we find a tap, mine or attack, we're not--those never lie within hold * notes. Ignore autoKeysound. */ @@ -395,12 +394,9 @@ bool NoteData::IsHoldNoteAtRow( int iTrack, int iRow, int *pHeadRow ) const continue; DEFAULT_FAIL( tn.type ); } - - if( bFoundHead ) - break; } - return bFoundHead; + return false; } bool NoteData::IsEmpty() const