]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[script] drop unused on_draw() function
authorScott James Remnant <scott@ubuntu.com>
Tue, 2 Mar 2010 18:21:15 +0000 (18:21 +0000)
committerScott James Remnant <scott@ubuntu.com>
Tue, 2 Mar 2010 20:09:04 +0000 (20:09 +0000)
The on_draw() function inside the script plugin isn't referenced
anywhere, but references a static function from script-lib-sprite.c;
if building without optimisation, it's possible that gcc won't elide
this code so will fail during linking.

src/plugins/splash/script/plugin.c

index 0f990f23d46b6d2424e5aeb305e388923cc4de7d..b35994c1a86042222b4156aaa42a0ee73e8dcedd 100644 (file)
@@ -307,19 +307,6 @@ on_keyboard_input (ply_boot_splash_plugin_t *plugin,
                                          keyboard_string);
 }
 
-static void
-on_draw (ply_boot_splash_plugin_t *plugin,
-         ply_pixel_buffer_t       *pixel_buffer,
-         int                       x,
-         int                       y,
-         int                       width,
-         int                       height)
-{
-  script_lib_sprite_draw_area (plugin->script_sprite_lib,
-                               pixel_buffer,
-                               x, y, width, height);
-}
-
 static void
 set_keyboard (ply_boot_splash_plugin_t *plugin,
               ply_keyboard_t           *keyboard)