From 8a4299bf7ee3173cf956ef481bf08e5f99808272 Mon Sep 17 00:00:00 2001 From: Andrea Canciani Date: Fri, 4 Feb 2011 22:48:30 +0100 Subject: [PATCH] quartz-font: Remove unused variables x_scale and y_scale are computed but never used. --- src/cairo-quartz-font.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/cairo-quartz-font.c b/src/cairo-quartz-font.c index 75dda025f..f529fc973 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,