From 775ae17f566590a0ff581e57ec3a09f554f0ef75 Mon Sep 17 00:00:00 2001 From: MC Return Date: Wed, 9 Jan 2013 15:45:26 +0100 Subject: Removed unused assignment of CAIRO_FORMAT_INVALID to format (bzr r3022.1.10) --- unity-shared/DashStyle.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'unity-shared') diff --git a/unity-shared/DashStyle.cpp b/unity-shared/DashStyle.cpp index a862145f7..c322ea151 100755 --- a/unity-shared/DashStyle.cpp +++ b/unity-shared/DashStyle.cpp @@ -1486,7 +1486,6 @@ void Style::Impl::DrawOverlay(cairo_t* cr, int width = 0; int height = 0; int stride = 0; - cairo_format_t format = CAIRO_FORMAT_INVALID; unsigned char* buffer = NULL; cairo_surface_t* surface = NULL; cairo_t* blurred_cr = NULL; @@ -1498,7 +1497,7 @@ void Style::Impl::DrawOverlay(cairo_t* cr, width = cairo_image_surface_get_width(target); height = cairo_image_surface_get_height(target); stride = cairo_image_surface_get_stride(target); - format = cairo_image_surface_get_format(target); + cairo_format_t format = cairo_image_surface_get_format(target); // get buffer buffer = (unsigned char*) calloc(1, height * stride); -- cgit v1.2.3