[dasher] GC various HandleEvent methods.



commit 8e58b125408f0de7e21155198a18319712dac874
Author: Alan Lawrence <acl33 inf phy cam ac uk>
Date:   Thu Nov 25 12:17:58 2010 +0000

    GC various HandleEvent methods.
    
    Inc some pure virtual ones - i.e. replacing CDasherComponent::HandleEvent,
    so subclasses are required to implement. Seems it's the subclasses own business
    whether they provide a (non-empty) implementation or not...?

 Src/DasherCore/AutoSpeedControl.h |    3 ---
 Src/DasherCore/BasicLog.h         |    1 -
 Src/DasherCore/ClickFilter.cpp    |    3 ---
 Src/DasherCore/ClickFilter.h      |    2 --
 Src/DasherCore/InputFilter.h      |    1 -
 Src/DasherCore/StartHandler.h     |    1 -
 Src/DasherCore/UserLogBase.h      |    1 -
 7 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/Src/DasherCore/AutoSpeedControl.h b/Src/DasherCore/AutoSpeedControl.h
index e41143b..c7a1582 100644
--- a/Src/DasherCore/AutoSpeedControl.h
+++ b/Src/DasherCore/AutoSpeedControl.h
@@ -24,9 +24,6 @@ class CAutoSpeedControl : public Dasher::CDasherComponent {
   ///
   void SpeedControl(myint iDasherX, myint iDasherY, CDasherView *pView);
 
-  virtual void HandleEvent(Dasher::CEvent *pEvent) {
-  };
-
  private:
 
   ///
diff --git a/Src/DasherCore/BasicLog.h b/Src/DasherCore/BasicLog.h
index 32207fb..6b42ddc 100644
--- a/Src/DasherCore/BasicLog.h
+++ b/Src/DasherCore/BasicLog.h
@@ -28,7 +28,6 @@ class CBasicLog : public CUserLogBase {
   virtual void SetOuputFilename(const string& strFilename = "") {};
   virtual int GetLogLevelMask() {return 0;};
   virtual void KeyDown(int iId, int iType, int iEffect);
-  virtual void HandleEvent(Dasher::CEvent* pEvent) {};
 
  private:
   void StartTrial();
diff --git a/Src/DasherCore/ClickFilter.cpp b/Src/DasherCore/ClickFilter.cpp
index c403519..77d6a08 100644
--- a/Src/DasherCore/ClickFilter.cpp
+++ b/Src/DasherCore/ClickFilter.cpp
@@ -81,9 +81,6 @@ void CClickFilter::KeyDown(int iTime, int iId, CDasherView *pDasherView, CDasher
   }
 }
 
-void CClickFilter::HandleEvent(Dasher::CEvent * pEvent) {
-}
-
 bool CClickFilter::GetSettings(SModuleSettings **pSettings, int *iCount) {
   *pSettings = sSettings;
   *iCount = sizeof(sSettings) / sizeof(SModuleSettings);
diff --git a/Src/DasherCore/ClickFilter.h b/Src/DasherCore/ClickFilter.h
index 029655a..76ef6e2 100644
--- a/Src/DasherCore/ClickFilter.h
+++ b/Src/DasherCore/ClickFilter.h
@@ -11,8 +11,6 @@ class CClickFilter : public CInputFilter {
   CClickFilter(Dasher::CEventHandler * pEventHandler, CSettingsStore *pSettingsStore, CDasherInterfaceBase *pInterface)
     : CInputFilter(pEventHandler, pSettingsStore, pInterface, 7, 1, _("Click Mode")) { };
 
-  virtual void HandleEvent(Dasher::CEvent * pEvent);
-
   virtual bool DecorateView(CDasherView *pView);
   virtual bool Timer(int Time, CDasherView *pDasherView, CDasherModel *pDasherModel, Dasher::VECTOR_SYMBOL_PROB *pAdded, int *pNumDeleted, CExpansionPolicy **pol);
   virtual void KeyDown(int iTime, int iId, CDasherView *pDasherView, CDasherModel *pModel, CUserLogBase *pUserLog, bool bPos, int iX, int iY);
diff --git a/Src/DasherCore/InputFilter.h b/Src/DasherCore/InputFilter.h
index e7105d6..f6abf3b 100644
--- a/Src/DasherCore/InputFilter.h
+++ b/Src/DasherCore/InputFilter.h
@@ -19,7 +19,6 @@ class CInputFilter : public CDasherModule {
     m_pInterface = pInterface;
   };
 
-  virtual void HandleEvent(Dasher::CEvent * pEvent) {};
   virtual bool DecorateView(CDasherView *pView) { return false; };
 
   virtual void KeyDown(int Time, int iId, CDasherView *pDasherView, CDasherModel *pModel, CUserLogBase *pUserLog, bool bPos, int iX, int iY) {
diff --git a/Src/DasherCore/StartHandler.h b/Src/DasherCore/StartHandler.h
index 6c46fe0..b413662 100644
--- a/Src/DasherCore/StartHandler.h
+++ b/Src/DasherCore/StartHandler.h
@@ -15,7 +15,6 @@ public:
 
   virtual bool DecorateView(CDasherView *pView) = 0;
   virtual void Timer(int iTime, CDasherView *m_pDasherView, CDasherModel *m_pDasherModel) = 0;
-  virtual void HandleEvent(Dasher::CEvent * pEvent) = 0;
 
 protected:
   CDasherInterfaceBase *m_pInterface;
diff --git a/Src/DasherCore/UserLogBase.h b/Src/DasherCore/UserLogBase.h
index cc8c356..7e5b748 100644
--- a/Src/DasherCore/UserLogBase.h
+++ b/Src/DasherCore/UserLogBase.h
@@ -30,7 +30,6 @@ class CUserLogBase : public Dasher::CDasherComponent {
   virtual void SetOuputFilename(const std::string& strFilename = "") = 0;
   virtual int GetLogLevelMask() = 0;
   virtual void KeyDown(int iId, int iType, int iEffect) = 0;
-  virtual void HandleEvent(Dasher::CEvent* pEvent) = 0;
 };
 /// @}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]