From d7f7af88f2296a8b929cac3af4b911756c9f1278 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Fri, 12 Aug 2016 18:43:10 +0200 Subject: [PATCH] Remove void constructors from ctools base classes (#1828) --- pyext/ctlikelihood.i | 1 - pyext/ctobservation.i | 1 - pyext/ctool.i | 3 --- src/support/ctlikelihood.cpp | 15 --------------- src/support/ctlikelihood.hpp | 1 - src/support/ctobservation.cpp | 15 --------------- src/support/ctobservation.hpp | 1 - src/support/ctool.cpp | 15 --------------- src/support/ctool.hpp | 1 - 9 files changed, 0 insertions(+), 53 deletions(-) diff --git a/pyext/ctlikelihood.i b/pyext/ctlikelihood.i index 6aa3b86..67fec04 100644 --- a/pyext/ctlikelihood.i +++ b/pyext/ctlikelihood.i @@ -39,7 +39,6 @@ class ctlikelihood : public ctobservation { public: // Constructors and destructors - ctlikelihood(void); ctlikelihood(const std::string& name, const std::string& version); ctlikelihood(const std::string& name, const std::string& version, const GObservations& obs); diff --git a/pyext/ctobservation.i b/pyext/ctobservation.i index 1b62df4..e36832b 100644 --- a/pyext/ctobservation.i +++ b/pyext/ctobservation.i @@ -39,7 +39,6 @@ class ctobservation : public ctool { public: // Constructors and destructors - ctobservation(void); ctobservation(const std::string& name, const std::string& version); ctobservation(const std::string& name, const std::string& version, const GObservations& obs); diff --git a/pyext/ctool.i b/pyext/ctool.i index 86790a4..78b9386 100644 --- a/pyext/ctool.i +++ b/pyext/ctool.i @@ -37,7 +37,6 @@ class cscript : public ctool { public: // Constructors and destructors - cscript(void) : ctool() {} cscript(const std::string& name, const std::string& version) : ctool(name, version) {} cscript(const std::string& name, const std::string& version, int argc, char* argv[]) : ctool(name, version, argc, argv) {} @@ -67,7 +66,6 @@ public: class ctool : public GApplication { public: // Constructors and destructors - ctool(void); ctool(const std::string& name, const std::string& version); ctool(const std::string& name, const std::string& version, int ARGC, char **ARGV); @@ -179,7 +177,6 @@ public: class cscript : public ctool { public: // Constructors and destructors - cscript(void); cscript(const std::string& name, const std::string& version); cscript(const std::string& name, const std::string& version, int ARGC, char **ARGV); diff --git a/src/support/ctlikelihood.cpp b/src/support/ctlikelihood.cpp index 285386d..e4b6d74 100644 --- a/src/support/ctlikelihood.cpp +++ b/src/support/ctlikelihood.cpp @@ -45,21 +45,6 @@ ==========================================================================*/ /***********************************************************************//** - * @brief Void constructor - * - * Constructs an empty likelihood tool. - ***************************************************************************/ -ctlikelihood::ctlikelihood(void) : ctobservation() -{ - // Initialise members - init_members(); - - // Return - return; -} - - -/***********************************************************************//** * @brief Name constructor * * @param[in] name Likelihood tool name. diff --git a/src/support/ctlikelihood.hpp b/src/support/ctlikelihood.hpp index f899453..1463472 100644 --- a/src/support/ctlikelihood.hpp +++ b/src/support/ctlikelihood.hpp @@ -42,7 +42,6 @@ class ctlikelihood : public ctobservation { public: // Constructors and destructors - ctlikelihood(void); ctlikelihood(const std::string& name, const std::string& version); ctlikelihood(const std::string& name, const std::string& version, const GObservations& obs); diff --git a/src/support/ctobservation.cpp b/src/support/ctobservation.cpp index f4045f6..ea89be4 100644 --- a/src/support/ctobservation.cpp +++ b/src/support/ctobservation.cpp @@ -44,21 +44,6 @@ ==========================================================================*/ /***********************************************************************//** - * @brief Void constructor - * - * Constructs an empty observation tool. - ***************************************************************************/ -ctobservation::ctobservation(void) : ctool() -{ - // Initialise members - init_members(); - - // Return - return; -} - - -/***********************************************************************//** * @brief Name constructor * * @param[in] name Observation tool name. diff --git a/src/support/ctobservation.hpp b/src/support/ctobservation.hpp index 46f7d34..908c3c1 100644 --- a/src/support/ctobservation.hpp +++ b/src/support/ctobservation.hpp @@ -45,7 +45,6 @@ class ctobservation : public ctool { public: // Constructors and destructors - ctobservation(void); ctobservation(const std::string& name, const std::string& version); ctobservation(const std::string& name, const std::string& version, const GObservations& obs); diff --git a/src/support/ctool.cpp b/src/support/ctool.cpp index 564449d..1de9fc7 100644 --- a/src/support/ctool.cpp +++ b/src/support/ctool.cpp @@ -70,21 +70,6 @@ ==========================================================================*/ /***********************************************************************//** - * @brief Void constructor - * - * Constructs an empty ctools. - ***************************************************************************/ -ctool::ctool(void) : GApplication() -{ - // Initialise members - init_members(); - - // Return - return; -} - - -/***********************************************************************//** * @brief Name constructor * * @param[in] name Application name. diff --git a/src/support/ctool.hpp b/src/support/ctool.hpp index d9cbc6c..5a6dde5 100644 --- a/src/support/ctool.hpp +++ b/src/support/ctool.hpp @@ -48,7 +48,6 @@ class ctool : public GApplication { public: // Constructors and destructors - ctool(void); ctool(const std::string& name, const std::string& version); ctool(const std::string& name, const std::string& version, int argc, char* argv[]); -- libgit2 0.21.4