From: Kristian Høgsberg Date: Sat, 22 Jan 2011 03:17:03 +0000 (-0500) Subject: Remove unused bits of cairo code X-Git-Tag: 0.85.0~248 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a495333d4fe36b3f983fc90bf9a0f9d53363b211;p=profile%2Fivi%2Fwayland.git Remove unused bits of cairo code --- diff --git a/clients/window.c b/clients/window.c index a42ade0..017c324 100644 --- a/clients/window.c +++ b/clients/window.c @@ -684,7 +684,6 @@ window_draw_decorations(struct window *window) { cairo_t *cr; cairo_text_extents_t extents; - cairo_pattern_t *outline, *bright, *dim; cairo_surface_t *frame; int width, height, shadow_dx = 3, shadow_dy = 3; @@ -693,10 +692,6 @@ window_draw_decorations(struct window *window) width = window->allocation.width; height = window->allocation.height; - outline = cairo_pattern_create_rgb(0.1, 0.1, 0.1); - bright = cairo_pattern_create_rgb(0.8, 0.8, 0.8); - dim = cairo_pattern_create_rgb(0.4, 0.4, 0.4); - cr = cairo_create(window->cairo_surface); cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE); @@ -721,9 +716,6 @@ window_draw_decorations(struct window *window) cairo_set_font_size(cr, 14); cairo_text_extents(cr, window->title, &extents); cairo_move_to(cr, (width - extents.width) / 2, 32 - extents.y_bearing); - cairo_set_line_cap (cr, CAIRO_LINE_CAP_ROUND); - cairo_set_line_join (cr, CAIRO_LINE_JOIN_ROUND); - cairo_set_line_width (cr, 4); if (window->keyboard_device) cairo_set_source_rgb(cr, 0, 0, 0); else