]> git.mxchange.org Git - flightgear.git/blobdiff - src/Environment/realwx_ctrl.cxx
Basics on catalog list model in the GUI.
[flightgear.git] / src / Environment / realwx_ctrl.cxx
index 6085252461197f20a647f00e86f44fa97957bbbf..104d7db5999a37c9b14f7ca5d0643ed6505af1ae 100644 (file)
@@ -343,9 +343,6 @@ void BasicRealWxController::removeMetarAtPath(const string &propPath)
   MetarPropertiesList::iterator it = findMetarAtPath( propPath );
   if( it != _metarProperties.end() ) {
     SG_LOG(SG_ENVIRONMENT, SG_INFO, "removing metar properties at " << propPath);
-//    LiveMetarProperties_ptr p(*it); // delay deletion until this goes out of scope when we return; no longer needed?
-    // TODO: this doesn't actually delete it, because doing so invalidates the
-    // BasicRealWxController::update iterator, causing a crash on Go To Airport
     _metarProperties.erase(it);
   } else {
     SG_LOG(SG_ENVIRONMENT, SG_WARN, "no metar properties at " << propPath);