Commit 7e86354f authored by mattijs's avatar mattijs
Browse files

STYLE: writeRegisteredObject: remove unused switch

parent ec1b7c01
......@@ -44,7 +44,6 @@ Foam::writeRegisteredObject::writeRegisteredObject
:
name_(name),
obr_(obr),
active_(true),
objectNames_()
{
read(dict);
......@@ -61,10 +60,7 @@ Foam::writeRegisteredObject::~writeRegisteredObject()
void Foam::writeRegisteredObject::read(const dictionary& dict)
{
if (active_)
{
dict.lookup("objectNames") >> objectNames_;
}
}
......@@ -82,8 +78,6 @@ void Foam::writeRegisteredObject::end()
void Foam::writeRegisteredObject::write()
{
if (active_)
{
forAll(objectNames_, i)
{
if (obr_.foundObject<regIOobject>(objectNames_[i]))
......@@ -108,7 +102,6 @@ void Foam::writeRegisteredObject::write()
}
}
}
}
......
......@@ -65,10 +65,6 @@ protected:
const objectRegistry& obr_;
//- On/off switch
bool active_;
// Read from dictionary
//- Names of objects to control
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment