timeSelector: Removed unused select function

This commit is contained in:
Henry Weller
2018-08-12 19:04:14 +01:00
parent 380eca5586
commit f18a771184
2 changed files with 0 additions and 50 deletions

View File

@ -147,11 +147,6 @@ void Foam::timeSelector::addOptions
"latestTime",
"select the latest time"
);
argList::addBoolOption
(
"newTimes",
"select the new times"
);
argList::addOption
(
"time",
@ -309,37 +304,4 @@ Foam::instantList Foam::timeSelector::selectIfPresent
}
Foam::instantList Foam::timeSelector::select
(
Time& runTime,
const argList& args,
const word& fName
)
{
instantList timeDirs(timeSelector::select0(runTime, args));
if (timeDirs.size() && args.optionFound("newTimes"))
{
List<bool> selectTimes(timeDirs.size(), true);
forAll(timeDirs, timeI)
{
selectTimes[timeI] =
!fileHandler().exists
(
runTime.path()
/timeDirs[timeI].name()
/fName
);
}
return subset(selectTimes, timeDirs);
}
else
{
return timeDirs;
}
}
// ************************************************************************* //

View File

@ -159,18 +159,6 @@ public:
Time& runTime,
const argList& args
);
//- Return the set of times selected based on the argList options
// including support for \b -newTimes in which times are selected
// if the file 'fName' does not exist in the time directory.
// Also set the runTime to the first instance or the
// \c constant/ directory if no instances are specified or available
static instantList select
(
Time& runTime,
const argList& args,
const word& fName
);
};