timeSelector: Removed unused select function
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user