mirror of https://github.com/stella-emu/stella.git
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:
parent
a0dcc9b459
commit
a028e5327d
|
@ -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];
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue