toSpan() no longer needed

previous PR that removed toSpan() forgot to update this file

Diffs=
b8ca8ded5 toSpan() no longer needed
This commit is contained in:
mikerreed
2022-08-24 16:04:25 +00:00
parent 3ebaccca09
commit 672dab6558
2 changed files with 4 additions and 4 deletions

View File

@@ -92,7 +92,7 @@ void TessRenderPath::triangulate(TessRenderPath* containerPath) {
auto contours = Span(&contour, 1);
m_earcut(contours);
containerPath->addTriangles(contour, toSpan(m_earcut.indices));
containerPath->addTriangles(contour, m_earcut.indices);
}
} else {
TESStesselator* tess = nullptr;
@@ -125,7 +125,7 @@ void TessRenderPath::triangulate(TessRenderPath* containerPath) {
}
containerPath->addTriangles(Span(reinterpret_cast<const Vec2D*>(verts), nverts),
toSpan(indices));
indices);
}
tessDeleteTess(tess);
}
@@ -162,4 +162,4 @@ void TessRenderPath::extrudeStroke(ContourStroke* stroke,
stroke->extrude(&m_segmentedContour, m_isClosed, join, cap, strokeWidth);
}
bool TessRenderPath::empty() const { return m_rawPath.empty(); }
bool TessRenderPath::empty() const { return m_rawPath.empty(); }