Make m_HoldNotes private.

Remove the copy ctor; no longer needed.  (Looking back, I don't
think it was needed anyway.)
This commit is contained in:
Glenn Maynard
2002-11-02 23:14:52 +00:00
parent 68cb613902
commit 75267d2a26
2 changed files with 2 additions and 15 deletions
-12
View File
@@ -33,18 +33,6 @@ NoteData::NoteData(const NoteData &cpy)
*this = cpy;
}
NoteData &NoteData::operator= (const NoteData &cpy)
{
Init();
for(int t = 0; t < MAX_NOTE_TRACKS; ++t)
m_TapNotes[t] = cpy.m_TapNotes[t];
m_iNumTracks = cpy.m_iNumTracks;
m_HoldNotes = cpy.m_HoldNotes;
return *this;
}
void NoteData::Init()
{
m_iNumTracks = 0;
+2 -3
View File
@@ -27,17 +27,16 @@ class NoteData
/* Keep this aligned, so that they all have the same size. */
vector<TapNote> m_TapNotes[MAX_NOTE_TRACKS];
vector<HoldNote> m_HoldNotes;
public:
NoteData();
~NoteData();
NoteData(const NoteData &cpy);
void Init();
NoteData &operator=(const NoteData &cpy);
int m_iNumTracks;
vector<HoldNote> m_HoldNotes;
/* Return the note at the given track and row. Row may be out of
* range; pretend the song goes on with TAP_EMPTYs indefinitely. */
inline TapNote GetTapNote(unsigned track, unsigned row) const