From: Scott James Remnant Date: Tue, 2 Mar 2010 18:21:15 +0000 (+0000) Subject: [script] drop unused on_draw() function X-Git-Tag: 0.8.0~61^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d35a13c44ba8ec514072b315481fb8c3ac5feaaa;p=thirdparty%2Fplymouth.git [script] drop unused on_draw() function 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. --- diff --git a/src/plugins/splash/script/plugin.c b/src/plugins/splash/script/plugin.c index 0f990f23..b35994c1 100644 --- a/src/plugins/splash/script/plugin.c +++ b/src/plugins/splash/script/plugin.c @@ -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)