mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: writeRegisteredObject: remove unused switch
This commit is contained in:
@ -44,7 +44,6 @@ Foam::writeRegisteredObject::writeRegisteredObject
|
||||
:
|
||||
name_(name),
|
||||
obr_(obr),
|
||||
active_(true),
|
||||
objectNames_()
|
||||
{
|
||||
read(dict);
|
||||
@ -60,12 +59,9 @@ Foam::writeRegisteredObject::~writeRegisteredObject()
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::writeRegisteredObject::read(const dictionary& dict)
|
||||
{
|
||||
if (active_)
|
||||
{
|
||||
dict.lookup("objectNames") >> objectNames_;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void Foam::writeRegisteredObject::execute()
|
||||
@ -81,8 +77,6 @@ void Foam::writeRegisteredObject::end()
|
||||
|
||||
|
||||
void Foam::writeRegisteredObject::write()
|
||||
{
|
||||
if (active_)
|
||||
{
|
||||
forAll(objectNames_, i)
|
||||
{
|
||||
@ -109,7 +103,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
|
||||
|
||||
Reference in New Issue
Block a user