Skip to content
Snippets Groups Projects
Commit 7e86354f authored by mattijs's avatar mattijs
Browse files

STYLE: writeRegisteredObject: remove unused switch

parent ec1b7c01
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,6 @@ Foam::writeRegisteredObject::writeRegisteredObject ...@@ -44,7 +44,6 @@ Foam::writeRegisteredObject::writeRegisteredObject
: :
name_(name), name_(name),
obr_(obr), obr_(obr),
active_(true),
objectNames_() objectNames_()
{ {
read(dict); read(dict);
...@@ -60,12 +59,9 @@ Foam::writeRegisteredObject::~writeRegisteredObject() ...@@ -60,12 +59,9 @@ Foam::writeRegisteredObject::~writeRegisteredObject()
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void Foam::writeRegisteredObject::read(const dictionary& dict) void Foam::writeRegisteredObject::read(const dictionary& dict)
{
if (active_)
{ {
dict.lookup("objectNames") >> objectNames_; dict.lookup("objectNames") >> objectNames_;
} }
}
void Foam::writeRegisteredObject::execute() void Foam::writeRegisteredObject::execute()
...@@ -81,8 +77,6 @@ void Foam::writeRegisteredObject::end() ...@@ -81,8 +77,6 @@ void Foam::writeRegisteredObject::end()
void Foam::writeRegisteredObject::write() void Foam::writeRegisteredObject::write()
{
if (active_)
{ {
forAll(objectNames_, i) forAll(objectNames_, i)
{ {
...@@ -109,7 +103,6 @@ void Foam::writeRegisteredObject::write() ...@@ -109,7 +103,6 @@ void Foam::writeRegisteredObject::write()
} }
} }
}
// ************************************************************************* // // ************************************************************************* //
...@@ -65,10 +65,6 @@ protected: ...@@ -65,10 +65,6 @@ protected:
const objectRegistry& obr_; const objectRegistry& obr_;
//- On/off switch
bool active_;
// Read from dictionary // Read from dictionary
//- Names of objects to control //- Names of objects to control
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment