From: Ray Strode Date: Wed, 9 Feb 2011 19:59:45 +0000 (-0500) Subject: fade-throbber: clean up warnings X-Git-Tag: 0.8.4~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8ffc986356468ce60f6d99984b6820e39bf220a;p=thirdparty%2Fplymouth.git fade-throbber: clean up warnings --- diff --git a/src/plugins/splash/fade-throbber/plugin.c b/src/plugins/splash/fade-throbber/plugin.c index 40e221cf..1b536300 100644 --- a/src/plugins/splash/fade-throbber/plugin.c +++ b/src/plugins/splash/fade-throbber/plugin.c @@ -142,11 +142,7 @@ view_show_prompt (view_t *view, if (prompt != NULL) { - int label_width, label_height; - ply_label_set_text (view->label, prompt); - label_width = ply_label_get_width (view->label); - label_height = ply_label_get_height (view->label); x = view->lock_area.x; y = view->lock_area.y + view->lock_area.height; @@ -431,7 +427,6 @@ view_animate_at_time (view_t *view, ply_boot_splash_plugin_t *plugin; ply_list_node_t *node; double logo_opacity; - uint32_t *logo_data, *star_data; long logo_x, logo_y; long logo_width, logo_height; unsigned long screen_width, screen_height; @@ -441,7 +436,6 @@ view_animate_at_time (view_t *view, logo_width = ply_image_get_width (plugin->logo_image); logo_height = ply_image_get_height (plugin->logo_image); - logo_data = ply_image_get_data (plugin->logo_image); screen_width = ply_pixel_display_get_width (view->display); screen_height = ply_pixel_display_get_height (view->display); @@ -449,7 +443,6 @@ view_animate_at_time (view_t *view, logo_x = (screen_width / 2) - (logo_width / 2); logo_y = (screen_height / 2) - (logo_height / 2); - star_data = ply_image_get_data (plugin->star_image); star_width = ply_image_get_width (plugin->star_image); star_height = ply_image_get_height (plugin->star_image); @@ -638,11 +631,8 @@ draw_background (view_t *view, int width, int height) { - ply_boot_splash_plugin_t *plugin; ply_rectangle_t area; - plugin = view->plugin; - area.x = x; area.y = y; area.width = width; @@ -746,15 +736,9 @@ on_draw (view_t *view, int height) { ply_boot_splash_plugin_t *plugin; - ply_rectangle_t area; plugin = view->plugin; - area.x = x; - area.y = y; - area.width = width; - area.height = height; - draw_background (view, pixel_buffer, x, y, width, height); if (plugin->state == PLY_BOOT_SPLASH_DISPLAY_NORMAL)