[PATCH] [script] drop unused on_draw() function

Scott James Remnant scott at ubuntu.com
Tue Mar 2 10:21:15 PST 2010


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 |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/src/plugins/splash/script/plugin.c b/src/plugins/splash/script/plugin.c
index 0f990f2..b35994c 100644
--- a/src/plugins/splash/script/plugin.c
+++ b/src/plugins/splash/script/plugin.c
@@ -308,19 +308,6 @@ on_keyboard_input (ply_boot_splash_plugin_t *plugin,
 }
 
 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)
 {
-- 
1.6.3.3



More information about the plymouth mailing list