diff options
author | Andrea Canciani <ranma42@gmail.com> | 2011-02-04 22:48:30 +0100 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2011-03-18 11:46:15 +0100 |
commit | 8a4299bf7ee3173cf956ef481bf08e5f99808272 (patch) | |
tree | b453923241db931214850c0877203dbd7b4bd33e | |
parent | fd1fca8010cc91e12a852f224e672de2d60e16b7 (diff) |
quartz-font: Remove unused variables
x_scale and y_scale are computed but never used.
-rw-r--r-- | src/cairo-quartz-font.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/cairo-quartz-font.c b/src/cairo-quartz-font.c index 75dda025..f529fc97 100644 --- a/src/cairo-quartz-font.c +++ b/src/cairo-quartz-font.c @@ -407,7 +407,6 @@ _cairo_quartz_init_glyph_metrics (cairo_quartz_scaled_font_t *font, int advance; CGRect bbox; double emscale = CGFontGetUnitsPerEmPtr (font_face->cgFont); - double xscale, yscale; double xmin, ymin, xmax, ymax; if (glyph == INVALID_GLYPH) @@ -427,11 +426,6 @@ _cairo_quartz_init_glyph_metrics (cairo_quartz_scaled_font_t *font, bbox.size.width = bbox.size.height = 0; } - status = _cairo_matrix_compute_basis_scale_factors (&font->base.scale, - &xscale, &yscale, 1); - if (status) - goto FAIL; - bbox = CGRectMake (bbox.origin.x / emscale, bbox.origin.y / emscale, bbox.size.width / emscale, @@ -595,7 +589,6 @@ _cairo_quartz_init_glyph_surface (cairo_quartz_scaled_font_t *font, int advance; CGRect bbox; double width, height; - double xscale, yscale; double emscale = CGFontGetUnitsPerEmPtr (font_face->cgFont); CGContextRef cgContext = NULL; @@ -627,11 +620,6 @@ _cairo_quartz_init_glyph_surface (cairo_quartz_scaled_font_t *font, return CAIRO_INT_STATUS_UNSUPPORTED; } - status = _cairo_matrix_compute_basis_scale_factors (&font->base.scale, - &xscale, &yscale, 1); - if (status) - return status; - /* scale(1,-1) * font->base.scale * scale(1,-1) */ textMatrix = CGAffineTransformMake (font->base.scale.xx, -font->base.scale.yx, |