mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/shared] Removed method computeYRange
This method of InteractiveCurveViewRangeDelegate was only used to compute the Y range when Yauto was on. Change-Id: I9b688a87e16fc58c7d2b00eb071076b98f945df6
This commit is contained in:
committed by
Émilie Feral
parent
8970e294aa
commit
13d1b7077c
@@ -140,12 +140,6 @@ void FunctionGraphController::interestingRanges(InteractiveCurveViewRange * rang
|
||||
privateComputeRanges(true, range);
|
||||
}
|
||||
|
||||
Shared::InteractiveCurveViewRangeDelegate::Range FunctionGraphController::computeYRange(Shared::InteractiveCurveViewRange * interactiveCurveViewRange) {
|
||||
InteractiveCurveViewRange tempRange = *interactiveCurveViewRange;
|
||||
privateComputeRanges(false, &tempRange);
|
||||
return Shared::InteractiveCurveViewRangeDelegate::Range{.min = tempRange.yMin(), .max = tempRange.yMax()};
|
||||
}
|
||||
|
||||
void FunctionGraphController::privateComputeRanges(bool tuneXRange, InteractiveCurveViewRange * range) const {
|
||||
Poincare::Context * context = textFieldDelegateApp()->localContext();
|
||||
float resultXMin = tuneXRange ? FLT_MAX : range->xMin();
|
||||
|
||||
Reference in New Issue
Block a user