mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
sw_engine: remove unnecessary assert() call
Change-Id: I7c665bab4ef867f912ea738480e6d9b2b63e014e
This commit is contained in:
parent
2c9610bf6a
commit
a12f346425
1 changed files with 2 additions and 7 deletions
|
@ -880,7 +880,6 @@ bool strokeParseOutline(SwStroke& stroke, const SwOutline& outline)
|
|||
for (uint32_t i = 0; i < outline.cntrsCnt; ++i) {
|
||||
auto last = outline.cntrs[i]; //index of last point in contour
|
||||
auto limit = outline.pts + last;
|
||||
assert(limit);
|
||||
|
||||
//Skip empty points
|
||||
if (last <= first) {
|
||||
|
@ -889,12 +888,8 @@ bool strokeParseOutline(SwStroke& stroke, const SwOutline& outline)
|
|||
}
|
||||
|
||||
auto start = outline.pts[first];
|
||||
|
||||
auto pt = outline.pts + first;
|
||||
assert(pt);
|
||||
auto types = outline.types + first;
|
||||
assert(types);
|
||||
|
||||
auto type = types[0];
|
||||
|
||||
//A contour cannot start with a cubic control point
|
||||
|
@ -903,8 +898,8 @@ bool strokeParseOutline(SwStroke& stroke, const SwOutline& outline)
|
|||
_beginSubPath(stroke, start, outline.opened);
|
||||
|
||||
while (pt < limit) {
|
||||
assert(++pt);
|
||||
assert(++types);
|
||||
++pt;
|
||||
++types;
|
||||
|
||||
//emit a signel line_to
|
||||
if (types[0] == SW_CURVE_TYPE_POINT) {
|
||||
|
|
Loading…
Add table
Reference in a new issue