cleanup
This commit is contained in:
@@ -53,14 +53,9 @@ void NoteData::SetNumTracks( int iNewNumTracks )
|
||||
for( int t=0; t<MAX_NOTE_TRACKS; t++ )
|
||||
{
|
||||
if( t<m_iNumTracks )
|
||||
{
|
||||
m_TapNotes[t].resize( rows, TAP_EMPTY );
|
||||
}
|
||||
else
|
||||
{
|
||||
m_TapNotes[t].clear();
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,9 +75,7 @@ void NoteData::ClearRange( int iNoteIndexBegin, int iNoteIndexEnd )
|
||||
void NoteData::ClearAll()
|
||||
{
|
||||
for( int t=0; t<m_iNumTracks; t++ )
|
||||
{
|
||||
m_TapNotes[t].clear();
|
||||
}
|
||||
m_HoldNotes.clear();
|
||||
}
|
||||
|
||||
@@ -517,9 +510,7 @@ void NoteData::PadTapNotes(int rows)
|
||||
needed += 100; /* optimization: give it a little more than it needs */
|
||||
|
||||
for(int track = 0; track < m_iNumTracks; ++track)
|
||||
{
|
||||
m_TapNotes[track].insert(m_TapNotes[track].end(), needed, TAP_EMPTY);
|
||||
}
|
||||
}
|
||||
|
||||
void NoteData::MoveTapNoteTrack(int dest, int src)
|
||||
@@ -640,7 +631,7 @@ void NoteDataUtil::LoadFromSMNoteDataString( NoteData &out, CString sSMNoteData
|
||||
// ASSERT(0);
|
||||
t = TAP_EMPTY; break;
|
||||
}
|
||||
out.SetTapNote(c, iIndex, t);
|
||||
out.SetTapNote(c, iIndex, t);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user