From a028e5327d07e3c8c3cc2f5930873bcc6429815a Mon Sep 17 00:00:00 2001 From: stephena Date: Fri, 22 Apr 2011 18:45:13 +0000 Subject: [PATCH] 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 --- src/emucore/Event.hxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/emucore/Event.hxx b/src/emucore/Event.hxx index b22dd3ce5..0d568b4e3 100644 --- a/src/emucore/Event.hxx +++ b/src/emucore/Event.hxx @@ -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]; };