PS/Win32-printing: remove redundant checks from _analyze_operation

The check for supported operators is performed earlier in this
functions so these two checks in not required.
This commit is contained in:
Adrian Johnson 2007-10-13 22:15:48 +09:30
parent ff35ffd2a7
commit af5cdde34d
2 changed files with 0 additions and 12 deletions

View file

@ -1610,12 +1610,6 @@ _cairo_ps_surface_analyze_operation (cairo_ps_surface_t *surface,
* background to convert the pattern to opaque.
*/
if (_cairo_operator_always_opaque (op))
return CAIRO_STATUS_SUCCESS;
if (_cairo_operator_always_translucent (op))
return CAIRO_INT_STATUS_FLATTEN_TRANSPARENCY;
if (_cairo_pattern_is_opaque (pattern))
return CAIRO_STATUS_SUCCESS;
else

View file

@ -163,12 +163,6 @@ _cairo_win32_printing_surface_analyze_operation (cairo_win32_surface_t *surface,
* background to convert the pattern to opaque.
*/
if (_cairo_operator_always_opaque (op))
return CAIRO_STATUS_SUCCESS;
if (_cairo_operator_always_translucent (op))
return CAIRO_INT_STATUS_FLATTEN_TRANSPARENCY;
if (_cairo_pattern_is_opaque (pattern))
return CAIRO_STATUS_SUCCESS;
else