From a495333d4fe36b3f983fc90bf9a0f9d53363b211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Fri, 21 Jan 2011 22:17:03 -0500 Subject: [PATCH] Remove unused bits of cairo code --- clients/window.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/clients/window.c b/clients/window.c index a42ade0c..017c3249 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