Minor cleanup.

This commit is contained in:
Jonathan Moore Liles 2008-05-14 21:15:02 -05:00
parent 825bb4c3e7
commit 28bc3ff1c6
1 changed files with 1 additions and 5 deletions

View File

@ -65,28 +65,24 @@ LASH_Client::poll ( void )
switch ( lash_event_get_type( e ) )
{
case LASH_Save_File:
{
handle_save_file( name );
lash_send_event( _client, lash_event_new_with_type( LASH_Save_File ) );
break;
}
case LASH_Restore_File:
{
if ( ! handle_restore_file( name ) )
/* FIXME: should we tell lash that we couldn't load the song? */;
lash_send_event( _client, lash_event_new_with_type( LASH_Restore_File ) );
break;
}
case LASH_Quit:
handle_quit();
break;
default:
WARNING( "unhandled LASH event" );
break;
}
lash_event_destroy( e );