From 34d929962413136ac127245c4347df5c6a5387b3 Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Thu, 14 Oct 2010 19:32:51 +1030 Subject: [PATCH] PS: Remove redundant code The test for zero stops is now in gstate. --- src/cairo-ps-surface.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/cairo-ps-surface.c b/src/cairo-ps-surface.c index 1ab5cb64e..1b091dbae 100644 --- a/src/cairo-ps-surface.c +++ b/src/cairo-ps-surface.c @@ -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;