internal/stroke, op/clip: remove unused variables

Fixes gio#233

Signed-off-by: Inkeliz <inkeliz@inkeliz.com>
This commit is contained in:
Inkeliz
2021-06-07 11:53:21 +01:00
committed by Elias Naur
parent dd86c9706f
commit b4e6d3efba
2 changed files with 2 additions and 10 deletions
+1 -3
View File
@@ -27,15 +27,13 @@ type Op struct {
func (p Op) Add(o *op.Ops) {
str := p.stroke
dashes := p.dashes
path := p.path
outline := p.outline
approx := str.Width > 0 && !(dashes == DashSpec{} && str.Miter == 0 && str.Join == RoundJoin && str.Cap == RoundCap)
approx := str.Width > 0 && !(p.dashes == DashSpec{} && str.Miter == 0 && str.Join == RoundJoin && str.Cap == RoundCap)
if approx {
// If the stroke is not natively supported by the compute renderer, construct a filled path
// that approximates it.
path = p.approximateStroke(o)
dashes = DashSpec{}
str = StrokeStyle{}
outline = true
}