From 6622e04aa1b9d8b38e53cbe3e71c0b7066fd7208 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 29 Jan 2023 09:06:52 -0700 Subject: [PATCH] [solver] Fix unused-variable error https://github.com/harfbuzz/harfbuzz/commit/223abd72b9f48c951ce1e99d89328edbcff43515 --- src/hb-subset-instancer-solver.cc | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/hb-subset-instancer-solver.cc b/src/hb-subset-instancer-solver.cc index 76b86e0e9..5c0f43ad4 100644 --- a/src/hb-subset-instancer-solver.cc +++ b/src/hb-subset-instancer-solver.cc @@ -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);