]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
two-step: fix warnings
authorRay Strode <rstrode@redhat.com>
Wed, 9 Feb 2011 20:07:03 +0000 (15:07 -0500)
committerRay Strode <rstrode@redhat.com>
Wed, 9 Feb 2011 20:07:14 +0000 (15:07 -0500)
src/plugins/splash/two-step/plugin.c

index b011f765d95d99d88ddad80c4289d5a0c786abcd..e93ff1b537d3c19f9477f5f117cc26247f376848 100644 (file)
@@ -474,11 +474,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->box_area.x + view->lock_area.width / 2;
       y = view->box_area.y + view->box_area.height;
@@ -828,15 +824,9 @@ on_draw (view_t                   *view,
          int                       height)
 {
   ply_boot_splash_plugin_t *plugin;
-  ply_rectangle_t area;
   ply_rectangle_t screen_area;
   ply_rectangle_t image_area;
 
-  area.x = x;
-  area.y = y;
-  area.width = width;
-  area.height = height;
-
   plugin = view->plugin;
 
   draw_background (view, pixel_buffer, x, y, width, height);