From 8abef404cf026d7740c835c393ca516d7d17d849 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Thu, 13 Aug 2020 19:29:23 +0900 Subject: [PATCH] sw_engine: remove unnecessary assert() call Change-Id: I8cb249b6b7f32992f7ce9c86e408546c14856330 --- src/lib/sw_engine/tvgSwRle.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/lib/sw_engine/tvgSwRle.cpp b/src/lib/sw_engine/tvgSwRle.cpp index 191e59e..6f1f2f2 100644 --- a/src/lib/sw_engine/tvgSwRle.cpp +++ b/src/lib/sw_engine/tvgSwRle.cpp @@ -571,21 +571,14 @@ static void _cubicTo(RleWorker& rw, const SwPoint& ctrl1, const SwPoint& ctrl2, static bool _decomposeOutline(RleWorker& rw) { auto outline = rw.outline; - assert(outline); - auto first = 0; //index of first point in contour for (uint32_t n = 0; n < outline->cntrsCnt; ++n) { auto last = outline->cntrs[n]; auto limit = outline->pts + last; - assert(limit); - auto start = UPSCALE(outline->pts[first]); - auto pt = outline->pts + first; - assert(pt); auto types = outline->types + first; - assert(types); /* A contour cannot start with a cubic control point! */ if (types[0] == SW_CURVE_TYPE_CUBIC) goto invalid_outline; @@ -593,8 +586,8 @@ static bool _decomposeOutline(RleWorker& rw) _moveTo(rw, UPSCALE(outline->pts[first])); while (pt < limit) { - assert(++pt); - assert(++types); + ++pt; + ++types; //emit a single line_to if (types[0] == SW_CURVE_TYPE_POINT) { -- 2.7.4