From: fps Date: Thu, 5 Sep 2013 14:43:52 +0000 (+0000) Subject: remove unused constructor X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8c68aaf7bc17b269ba9d5a712d0c018ce5e958fa;p=modules%2Fgeom.git remove unused constructor --- diff --git a/src/XAO/BooleanField.cxx b/src/XAO/BooleanField.cxx index e69ac7484..8396cb4c4 100644 --- a/src/XAO/BooleanField.cxx +++ b/src/XAO/BooleanField.cxx @@ -25,12 +25,6 @@ using namespace XAO; -BooleanField::BooleanField(const XAO::Dimension& dimension, - const int& nbElements, const int& nbComponents) - : Field("", dimension, nbElements, nbComponents) -{ -} - BooleanField::BooleanField(const std::string& name, const XAO::Dimension& dimension, const int& nbElements, const int& nbComponents) : Field(name, dimension, nbElements, nbComponents) diff --git a/src/XAO/BooleanField.hxx b/src/XAO/BooleanField.hxx index 950e2be5b..2a240db79 100644 --- a/src/XAO/BooleanField.hxx +++ b/src/XAO/BooleanField.hxx @@ -34,7 +34,6 @@ namespace XAO class BooleanField : public Field { public: - BooleanField(const XAO::Dimension& dimension, const int& nbElements, const int& nbComponents); BooleanField(const std::string& name, const XAO::Dimension& dimension, const int& nbElements, const int& nbComponents); virtual const XAO::Type getType() { return XAO::BOOLEAN; } diff --git a/src/XAO/BooleanStep.cxx b/src/XAO/BooleanStep.cxx index 02c2f2960..3fab963bc 100644 --- a/src/XAO/BooleanStep.cxx +++ b/src/XAO/BooleanStep.cxx @@ -24,22 +24,7 @@ using namespace XAO; -BooleanStep::BooleanStep(const int& nbElements, const int& nbComponents) -{ - init(0, 0, nbElements, nbComponents); -} - -BooleanStep::BooleanStep(const int& step, const int& nbElements, const int& nbComponents) -{ - init(step, 0, nbElements, nbComponents); -} - BooleanStep::BooleanStep(const int& step, const int& stamp, const int& nbElements, const int& nbComponents) -{ - init(step, stamp, nbElements, nbComponents); -} - -void BooleanStep::init(const int& step, const int& stamp, const int& nbElements, const int& nbComponents) { m_nbElements = nbElements; m_nbComponents = nbComponents; diff --git a/src/XAO/BooleanStep.hxx b/src/XAO/BooleanStep.hxx index 860eb3084..d82ee4a38 100644 --- a/src/XAO/BooleanStep.hxx +++ b/src/XAO/BooleanStep.hxx @@ -33,8 +33,6 @@ namespace XAO class BooleanStep : public Step { public: - BooleanStep(const int& nbElements, const int& nbComponents); - BooleanStep(const int& step, const int& nbElements, const int& nbComponents); BooleanStep(const int& step, const int& stamp, const int& nbElements, const int& nbComponents); virtual const XAO::Type getType() { return XAO::BOOLEAN; } @@ -75,9 +73,6 @@ namespace XAO virtual const std::string getStringValue(const int& element, const int& component); virtual void setStringValue(const int& element, const int& component, const std::string& value); - private: - void init(const int& step, const int& stamp, const int& nbElements, const int& nbComponents); - private: std::vector< std::vector > m_values; }; diff --git a/src/XAO/DoubleField.cxx b/src/XAO/DoubleField.cxx index dc5aa57d0..d8cda41b3 100644 --- a/src/XAO/DoubleField.cxx +++ b/src/XAO/DoubleField.cxx @@ -25,11 +25,6 @@ using namespace XAO; -DoubleField::DoubleField(const XAO::Dimension& dimension, const int& nbElements, const int& nbComponents) - : Field("", dimension, nbElements, nbComponents) -{ -} - DoubleField::DoubleField(const std::string& name, const XAO::Dimension& dimension, const int& nbElements, const int& nbComponents) : Field(name, dimension, nbElements, nbComponents) { diff --git a/src/XAO/DoubleField.hxx b/src/XAO/DoubleField.hxx index 20d3b77c0..152efbd5b 100644 --- a/src/XAO/DoubleField.hxx +++ b/src/XAO/DoubleField.hxx @@ -35,7 +35,6 @@ namespace XAO class DoubleField : public Field { public: - DoubleField(const XAO::Dimension& dimension, const int& nbElements, const int& nbComponents); DoubleField(const std::string& name, const XAO::Dimension& dimension, const int& nbElements, const int& nbComponents); virtual const XAO::Type getType() { return XAO::DOUBLE; } diff --git a/src/XAO/DoubleStep.cxx b/src/XAO/DoubleStep.cxx index 3b96121e9..10cb30fcf 100644 --- a/src/XAO/DoubleStep.cxx +++ b/src/XAO/DoubleStep.cxx @@ -24,22 +24,7 @@ using namespace XAO; -DoubleStep::DoubleStep(const int& nbElements, const int& nbComponents) -{ - init(0, 0, nbElements, nbComponents); -} - -DoubleStep::DoubleStep(const int& step, const int& nbElements, const int& nbComponents) -{ - init(step, 0, nbElements, nbComponents); -} - DoubleStep::DoubleStep(const int& step, const int& stamp, const int& nbElements, const int& nbComponents) -{ - init(step, stamp, nbElements, nbComponents); -} - -void DoubleStep::init(const int& step, const int& stamp, const int& nbElements, const int& nbComponents) { m_nbElements = nbElements; m_nbComponents = nbComponents; diff --git a/src/XAO/DoubleStep.hxx b/src/XAO/DoubleStep.hxx index 0c8d9a1a0..ccf25ada3 100644 --- a/src/XAO/DoubleStep.hxx +++ b/src/XAO/DoubleStep.hxx @@ -32,8 +32,6 @@ namespace XAO class DoubleStep : public Step { public: - DoubleStep(const int& nbElements, const int& nbComponents); - DoubleStep(const int& step, const int& nbElements, const int& nbComponents); DoubleStep(const int& step, const int& stamp, const int& nbElements, const int& nbComponents); virtual const XAO::Type getType() { return XAO::DOUBLE; } @@ -52,9 +50,6 @@ namespace XAO virtual const std::string getStringValue(const int& element, const int& component); virtual void setStringValue(const int& element, const int& component, const std::string& value); - private: - void init(const int& step, const int& stamp, const int& nbElements, const int& nbComponents); - private: std::vector< std::vector > m_values; }; diff --git a/src/XAO/IntegerField.cxx b/src/XAO/IntegerField.cxx index 4b5b09f71..3c73be2c9 100644 --- a/src/XAO/IntegerField.cxx +++ b/src/XAO/IntegerField.cxx @@ -25,11 +25,6 @@ using namespace XAO; -IntegerField::IntegerField(const XAO::Dimension& dimension, const int& nbElements, const int& nbComponents) - : Field("", dimension, nbElements, nbComponents) -{ -} - IntegerField::IntegerField(const std::string& name, const XAO::Dimension& dimension, const int& nbElements, const int& nbComponents) : Field(name, dimension, nbElements, nbComponents) { diff --git a/src/XAO/IntegerField.hxx b/src/XAO/IntegerField.hxx index 699adda79..bc8ff1d27 100644 --- a/src/XAO/IntegerField.hxx +++ b/src/XAO/IntegerField.hxx @@ -35,7 +35,6 @@ namespace XAO class IntegerField : public Field { public: - IntegerField(const XAO::Dimension& dimension, const int& nbElements, const int& nbComponents); IntegerField(const std::string& name, const XAO::Dimension& dimension, const int& nbElements, const int& nbComponents); virtual const XAO::Type getType() { return XAO::INTEGER; } diff --git a/src/XAO/IntegerStep.cxx b/src/XAO/IntegerStep.cxx index 0cf5b3d26..f1e4a3ca1 100644 --- a/src/XAO/IntegerStep.cxx +++ b/src/XAO/IntegerStep.cxx @@ -24,22 +24,7 @@ using namespace XAO; -IntegerStep::IntegerStep(const int& nbElements, const int& nbComponents) -{ - init(0, 0, nbElements, nbComponents); -} - -IntegerStep::IntegerStep(const int& step, const int& nbElements, const int& nbComponents) -{ - init(step, 0, nbElements, nbComponents); -} - IntegerStep::IntegerStep(const int& step, const int& stamp, const int& nbElements, const int& nbComponents) -{ - init(step, stamp, nbElements, nbComponents); -} - -void IntegerStep::init(const int& step, const int& stamp, const int& nbElements, const int& nbComponents) { m_nbElements = nbElements; m_nbComponents = nbComponents; diff --git a/src/XAO/IntegerStep.hxx b/src/XAO/IntegerStep.hxx index 862d52a02..b1ad9ce21 100644 --- a/src/XAO/IntegerStep.hxx +++ b/src/XAO/IntegerStep.hxx @@ -32,8 +32,6 @@ namespace XAO class IntegerStep : public Step { public: - IntegerStep(const int& nbElements, const int& nbComponents); - IntegerStep(const int& step, const int& nbElements, const int& nbComponents); IntegerStep(const int& step, const int& stamp, const int& nbElements, const int& nbComponents); virtual const XAO::Type getType() { return XAO::INTEGER; } @@ -52,9 +50,6 @@ namespace XAO virtual const std::string getStringValue(const int& element, const int& component); virtual void setStringValue(const int& element, const int& component, const std::string& value); - private: - void init(const int& step, const int& stamp, const int& nbElements, const int& nbComponents); - private: std::vector< std::vector > m_values; }; diff --git a/src/XAO/StringField.cxx b/src/XAO/StringField.cxx index 55ce778eb..1197ffa58 100644 --- a/src/XAO/StringField.cxx +++ b/src/XAO/StringField.cxx @@ -25,11 +25,6 @@ using namespace XAO; -StringField::StringField(const XAO::Dimension& dimension, const int& nbElements, const int& nbComponents) - : Field("", dimension, nbElements, nbComponents) -{ -} - StringField::StringField(const std::string& name, const XAO::Dimension& dimension, const int& nbElements, const int& nbComponents) : Field(name, dimension, nbElements, nbComponents) { diff --git a/src/XAO/StringField.hxx b/src/XAO/StringField.hxx index 8618aafd8..d7855cb33 100644 --- a/src/XAO/StringField.hxx +++ b/src/XAO/StringField.hxx @@ -35,7 +35,6 @@ namespace XAO class StringField : public Field { public: - StringField(const XAO::Dimension& dimension, const int& nbElements, const int& nbComponents); StringField(const std::string& name, const XAO::Dimension& dimension, const int& nbElements, const int& nbComponents); virtual const XAO::Type getType() { return XAO::STRING; } diff --git a/src/XAO/StringStep.cxx b/src/XAO/StringStep.cxx index 3e121890b..f4611013c 100644 --- a/src/XAO/StringStep.cxx +++ b/src/XAO/StringStep.cxx @@ -23,22 +23,7 @@ using namespace XAO; -StringStep::StringStep(const int& nbElements, const int& nbComponents) -{ - init(0, 0, nbElements, nbComponents); -} - -StringStep::StringStep(const int& step, const int& nbElements, const int& nbComponents) -{ - init(step, 0, nbElements, nbComponents); -} - StringStep::StringStep(const int& step, const int& stamp, const int& nbElements, const int& nbComponents) -{ - init(step, stamp, nbElements, nbComponents); -} - -void StringStep::init(const int& step, const int& stamp, const int& nbElements, const int& nbComponents) { m_nbElements = nbElements; m_nbComponents = nbComponents; diff --git a/src/XAO/StringStep.hxx b/src/XAO/StringStep.hxx index 3bd3e8895..bbd43592d 100644 --- a/src/XAO/StringStep.hxx +++ b/src/XAO/StringStep.hxx @@ -53,9 +53,6 @@ namespace XAO virtual const std::string getStringValue(const int& element, const int& component); virtual void setStringValue(const int& element, const int& component, const std::string& value); - private: - void init(const int& step, const int& stamp, const int& nbElements, const int& nbComponents); - private: std::vector< std::vector > m_values; };