From 43ce93303cb4f1de58fc99373e129a250c8adeb1 Mon Sep 17 00:00:00 2001 From: mfranz Date: Fri, 20 Oct 2006 12:12:12 +0000 Subject: [PATCH] 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.) --- src/Instrumentation/navradio.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 ); -- 2.39.5