[apps/shared] Remove redundant call to isCircularlyDefined

ExpressionModel::expressionReduced does already call isCircularlyDefined
and returns undef if true.
The isCircularlyDefined method is then made private.
This commit is contained in:
Ruben Dashyan
2019-09-18 11:52:27 +02:00
committed by Léa Saviot
parent 9480bcacd5
commit 5750d00574
3 changed files with 2 additions and 5 deletions

View File

@@ -276,7 +276,7 @@ ContinuousFunction::RecordDataBuffer * ContinuousFunction::recordData() const {
template<typename T>
Coordinate2D<T> ContinuousFunction::templatedApproximateAtParameter(T t, Poincare::Context * context) const {
if (isCircularlyDefined(context) || t < tMin() || t > tMax()) {
if (t < tMin() || t > tMax()) {
return Coordinate2D<T>(plotType() == PlotType::Cartesian ? t : NAN, NAN);
}
constexpr int bufferSize = CodePoint::MaxCodePointCharLength + 1;