From: mfranz Date: Fri, 20 Oct 2006 12:12:12 +0000 (+0000) Subject: drop pointless warning. If the sound can't be removed, then proably because X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=43ce93303cb4f1de58fc99373e129a250c8adeb1;p=flightgear.git drop pointless warning. If the sound can't be removed, then proably because it was never added, which is perfectly normal when the aircraft started out of range. (Analog to the DME sound, which doesn't have that warning either.) --- diff --git a/src/Instrumentation/navradio.cxx b/src/Instrumentation/navradio.cxx index e8732a063..4bec5789b 100644 --- a/src/Instrumentation/navradio.cxx +++ b/src/Instrumentation/navradio.cxx @@ -931,11 +931,8 @@ void FGNavRadio::search() target_radial = 0; trans_ident = ""; last_nav_id = ""; - if ( ! globals->get_soundmgr()->remove( nav_fx_name ) ) { - SG_LOG(SG_COCKPIT, SG_WARN, "Failed to remove nav-vor-ident sound"); - } + globals->get_soundmgr()->remove( nav_fx_name ); globals->get_soundmgr()->remove( dme_fx_name ); - // cout << "not picking up vor1. :-(" << endl; } is_valid_node->setBoolValue( is_valid );