Minor cleanup of Event class, removing redundant variable.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2224 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2011-04-22 18:45:13 +00:00
parent a0dcc9b459
commit a028e5327d
1 changed files with 3 additions and 6 deletions

View File

@ -86,7 +86,7 @@ class Event
/**
Create a new event object
*/
Event() : myNumberOfTypes(Event::LastType) { clear(); }
Event() { clear(); }
public:
/**
@ -104,14 +104,11 @@ class Event
*/
void clear()
{
for(int i = 0; i < myNumberOfTypes; ++i)
for(uInt32 i = 0; i < LastType; ++i)
myValues[i] = Event::NoType;
}
protected:
// Number of event types there are
const Int32 myNumberOfTypes;
private:
// Array of values associated with each event type
Int32 myValues[LastType];
};