Commit d7f7af88f2296a8b929cac3af4b911756c9f1278
1 parent
c4d37dea
Remove void constructors from ctools base classes (#1828)
The void constructors from ctools base classes are never used, tools are always constructed with a name and version number.
Showing
9 changed files
with
0 additions
and
53 deletions
pyext/ctlikelihood.i
| ... | ... | @@ -39,7 +39,6 @@ class ctlikelihood : public ctobservation { |
| 39 | 39 | |
| 40 | 40 | public: |
| 41 | 41 | // Constructors and destructors |
| 42 | - ctlikelihood(void); | |
| 43 | 42 | ctlikelihood(const std::string& name, const std::string& version); |
| 44 | 43 | ctlikelihood(const std::string& name, const std::string& version, |
| 45 | 44 | const GObservations& obs); | ... | ... |
pyext/ctobservation.i
| ... | ... | @@ -39,7 +39,6 @@ class ctobservation : public ctool { |
| 39 | 39 | |
| 40 | 40 | public: |
| 41 | 41 | // Constructors and destructors |
| 42 | - ctobservation(void); | |
| 43 | 42 | ctobservation(const std::string& name, const std::string& version); |
| 44 | 43 | ctobservation(const std::string& name, const std::string& version, |
| 45 | 44 | const GObservations& obs); | ... | ... |
pyext/ctool.i
| ... | ... | @@ -37,7 +37,6 @@ |
| 37 | 37 | class cscript : public ctool { |
| 38 | 38 | public: |
| 39 | 39 | // Constructors and destructors |
| 40 | - cscript(void) : ctool() {} | |
| 41 | 40 | cscript(const std::string& name, const std::string& version) : ctool(name, version) {} |
| 42 | 41 | cscript(const std::string& name, const std::string& version, |
| 43 | 42 | int argc, char* argv[]) : ctool(name, version, argc, argv) {} |
| ... | ... | @@ -67,7 +66,6 @@ public: |
| 67 | 66 | class ctool : public GApplication { |
| 68 | 67 | public: |
| 69 | 68 | // Constructors and destructors |
| 70 | - ctool(void); | |
| 71 | 69 | ctool(const std::string& name, const std::string& version); |
| 72 | 70 | ctool(const std::string& name, const std::string& version, |
| 73 | 71 | int ARGC, char **ARGV); |
| ... | ... | @@ -179,7 +177,6 @@ public: |
| 179 | 177 | class cscript : public ctool { |
| 180 | 178 | public: |
| 181 | 179 | // Constructors and destructors |
| 182 | - cscript(void); | |
| 183 | 180 | cscript(const std::string& name, const std::string& version); |
| 184 | 181 | cscript(const std::string& name, const std::string& version, |
| 185 | 182 | int ARGC, char **ARGV); | ... | ... |
src/support/ctlikelihood.cpp
| ... | ... | @@ -45,21 +45,6 @@ |
| 45 | 45 | ==========================================================================*/ |
| 46 | 46 | |
| 47 | 47 | /***********************************************************************//** |
| 48 | - * @brief Void constructor | |
| 49 | - * | |
| 50 | - * Constructs an empty likelihood tool. | |
| 51 | - ***************************************************************************/ | |
| 52 | -ctlikelihood::ctlikelihood(void) : ctobservation() | |
| 53 | -{ | |
| 54 | - // Initialise members | |
| 55 | - init_members(); | |
| 56 | - | |
| 57 | - // Return | |
| 58 | - return; | |
| 59 | -} | |
| 60 | - | |
| 61 | - | |
| 62 | -/***********************************************************************//** | |
| 63 | 48 | * @brief Name constructor |
| 64 | 49 | * |
| 65 | 50 | * @param[in] name Likelihood tool name. | ... | ... |
src/support/ctlikelihood.hpp
| ... | ... | @@ -42,7 +42,6 @@ class ctlikelihood : public ctobservation { |
| 42 | 42 | |
| 43 | 43 | public: |
| 44 | 44 | // Constructors and destructors |
| 45 | - ctlikelihood(void); | |
| 46 | 45 | ctlikelihood(const std::string& name, const std::string& version); |
| 47 | 46 | ctlikelihood(const std::string& name, const std::string& version, |
| 48 | 47 | const GObservations& obs); | ... | ... |
src/support/ctobservation.cpp
| ... | ... | @@ -44,21 +44,6 @@ |
| 44 | 44 | ==========================================================================*/ |
| 45 | 45 | |
| 46 | 46 | /***********************************************************************//** |
| 47 | - * @brief Void constructor | |
| 48 | - * | |
| 49 | - * Constructs an empty observation tool. | |
| 50 | - ***************************************************************************/ | |
| 51 | -ctobservation::ctobservation(void) : ctool() | |
| 52 | -{ | |
| 53 | - // Initialise members | |
| 54 | - init_members(); | |
| 55 | - | |
| 56 | - // Return | |
| 57 | - return; | |
| 58 | -} | |
| 59 | - | |
| 60 | - | |
| 61 | -/***********************************************************************//** | |
| 62 | 47 | * @brief Name constructor |
| 63 | 48 | * |
| 64 | 49 | * @param[in] name Observation tool name. | ... | ... |
src/support/ctobservation.hpp
| ... | ... | @@ -45,7 +45,6 @@ class ctobservation : public ctool { |
| 45 | 45 | |
| 46 | 46 | public: |
| 47 | 47 | // Constructors and destructors |
| 48 | - ctobservation(void); | |
| 49 | 48 | ctobservation(const std::string& name, const std::string& version); |
| 50 | 49 | ctobservation(const std::string& name, const std::string& version, |
| 51 | 50 | const GObservations& obs); | ... | ... |
src/support/ctool.cpp
| ... | ... | @@ -70,21 +70,6 @@ |
| 70 | 70 | ==========================================================================*/ |
| 71 | 71 | |
| 72 | 72 | /***********************************************************************//** |
| 73 | - * @brief Void constructor | |
| 74 | - * | |
| 75 | - * Constructs an empty ctools. | |
| 76 | - ***************************************************************************/ | |
| 77 | -ctool::ctool(void) : GApplication() | |
| 78 | -{ | |
| 79 | - // Initialise members | |
| 80 | - init_members(); | |
| 81 | - | |
| 82 | - // Return | |
| 83 | - return; | |
| 84 | -} | |
| 85 | - | |
| 86 | - | |
| 87 | -/***********************************************************************//** | |
| 88 | 73 | * @brief Name constructor |
| 89 | 74 | * |
| 90 | 75 | * @param[in] name Application name. | ... | ... |
src/support/ctool.hpp
| ... | ... | @@ -48,7 +48,6 @@ |
| 48 | 48 | class ctool : public GApplication { |
| 49 | 49 | public: |
| 50 | 50 | // Constructors and destructors |
| 51 | - ctool(void); | |
| 52 | 51 | ctool(const std::string& name, const std::string& version); |
| 53 | 52 | ctool(const std::string& name, const std::string& version, |
| 54 | 53 | int argc, char* argv[]); | ... | ... |