Skip to content

Commit

Permalink
PS: Remove redundant code
Browse files Browse the repository at this point in the history
The test for zero stops is now in gstate.
  • Loading branch information
Adrian Johnson committed Oct 15, 2010
1 parent 7a17ef3 commit 34d9299
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/cairo-ps-surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1727,9 +1727,6 @@ _gradient_pattern_supported (cairo_ps_surface_t *surface,
if (surface->ps_level == CAIRO_PS_LEVEL_2)
return FALSE;

if (gradient->n_stops == 0)
return TRUE;

/* Alpha gradients are only supported (by flattening the alpha)
* if there is no variation in the alpha across the gradient. */
alpha = gradient->stops[0].color.alpha_short;
Expand Down

0 comments on commit 34d9299

Please sign in to comment.