From f290b46184746744550cabace19576772bf5fd84 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Sat, 20 Mar 2010 17:28:02 +0000
Subject: [PATCH] cleanup

---
 Plugin/Plugin.h | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)

diff --git a/Plugin/Plugin.h b/Plugin/Plugin.h
index 7ccf9d7339..d896952f8b 100644
--- a/Plugin/Plugin.h
+++ b/Plugin/Plugin.h
@@ -56,12 +56,12 @@ class GMSH_Plugin
   virtual void catchErrorMessage(char *errorMessage) const;
 
   // gmsh-style numeric options
-  virtual int getNbOptions() const = 0;
-  virtual StringXNumber *getOption(int iopt) = 0;
+  virtual int getNbOptions() const { return 0; }
+  virtual StringXNumber *getOption(int iopt) { return 0; };
 
   // gmsh-style string options
-  virtual int getNbOptionsStr() const = 0;
-  virtual StringXString *getOptionStr(int iopt) = 0;
+  virtual int getNbOptionsStr() const { return 0; }
+  virtual StringXString *getOptionStr(int iopt) { return NULL; }
 
   // serialize plugin options into a string
   std::string serialize();
@@ -80,10 +80,6 @@ class GMSH_PostPlugin : public GMSH_Plugin
 {
  public:
   inline GMSH_PLUGIN_TYPE getType() const { return GMSH_Plugin::GMSH_POST_PLUGIN; }
-  virtual int getNbOptions() const { return 0; }
-  virtual StringXNumber *getOption(int iopt) { return 0; };
-  virtual int getNbOptionsStr() const { return 0; }
-  virtual StringXString *getOptionStr(int iopt) { return NULL; }
   // run the plugin
   virtual void run(){ execute(0); }
   // if the returned pointer is the same as the argument, then the
@@ -109,12 +105,8 @@ class GMSH_PostPlugin : public GMSH_Plugin
 class GMSH_SolverPlugin : public GMSH_Plugin
 {
  public:
-  virtual int getNbOptions() const { return 0; }
-  virtual StringXNumber *getOption(int iopt) { return 0; };
-  virtual int getNbOptionsStr() const { return 0; }
-  virtual StringXString *getOptionStr(int iopt) { return 0; }
   inline GMSH_PLUGIN_TYPE getType() const { return GMSH_Plugin::GMSH_SOLVER_PLUGIN; }
-  virtual void run() {} // do nothing
+  virtual void run() {}
   // popup dialog box
   virtual void popupPropertiesForPhysicalEntity(int dim) = 0;
   // add the given group to the solver data
-- 
GitLab