Skip to content

Commit

Permalink
quartz: Remove unused imageSurface field
Browse files Browse the repository at this point in the history
imageSurface was used to store a reference to the fallback image
generated by during fallbacks for gradients. The fallback code
has been removed as it is not needed anymore, thus this field can
be removed as well.
  • Loading branch information
Andrea Canciani committed Oct 12, 2010
1 parent ce45599 commit 35b1688
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/cairo-quartz-surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,6 @@ typedef struct {

/* Used with DO_IMAGE and DO_TILED_IMAGE */
CGImageRef image;
cairo_surface_t *imageSurface;
CGRect imageRect;

/* Used with DO_SHADING */
Expand Down Expand Up @@ -1438,7 +1437,6 @@ _cairo_quartz_setup_source (cairo_quartz_drawing_state_t *state,
cairo_status_t status;

state->image = NULL;
state->imageSurface = NULL;
state->shading = NULL;

/* Save before we change the pattern, colorspace, etc. so that
Expand Down Expand Up @@ -1596,9 +1594,6 @@ _cairo_quartz_teardown_source (cairo_quartz_drawing_state_t *state,
if (state->image)
CGImageRelease (state->image);

if (state->imageSurface)
cairo_surface_destroy (state->imageSurface);

if (state->shading)
CGShadingRelease (state->shading);
}
Expand Down

0 comments on commit 35b1688

Please sign in to comment.