[solver] Fix unused-variable error

223abd72b9
This commit is contained in:
Behdad Esfahbod 2023-01-29 09:06:52 -07:00
parent 5da829eaf5
commit 6622e04aa1
1 changed files with 3 additions and 10 deletions

View File

@ -438,16 +438,9 @@ HB_INTERNAL result_t rebase_tent (Triple tent, Triple axisLimit);
result_t
rebase_tent (Triple tent, Triple axisLimit)
{
float axisMin = axisLimit.minimum;
float axisDef = axisLimit.middle;
float axisMax = axisLimit.maximum;
float lower = tent.minimum;
float peak = tent.middle;
float upper = tent.maximum;
assert (-1.f <= axisMin && axisMin <= axisDef && axisDef <= axisMax && axisMax <= +1.f);
assert (-2.f <= lower && lower <= peak && peak <= upper && upper <= +2.f);
assert (peak != 0.f);
assert (-1.f <= axisLimit.minimum && axisLimit.minimum <= axisLimit.middle && axisLimit.middle <= axisLimit.maximum && axisLimit.maximum <= +1.f);
assert (-2.f <= tent.minimum && tent.minimum <= tent.middle && tent.middle <= tent.maximum && tent.maximum <= +2.f);
assert (tent.middle != 0.f);
result_t sols = _solve (tent, axisLimit);