]> git.mxchange.org Git - flightgear.git/commitdiff
Remove some unused code
authorTorsten Dreyer <Torsten@t3r.de>
Tue, 31 May 2011 18:58:22 +0000 (20:58 +0200)
committerTorsten Dreyer <Torsten@t3r.de>
Tue, 31 May 2011 18:58:22 +0000 (20:58 +0200)
src/Environment/fgclouds.cxx
src/Environment/metarproperties.cxx
src/Environment/terrainsampler.cxx

index 9b689d443af37f5c925706baa7b24e046fe97654..6cc4d49ef4f2fda9992d4cf0cfb742a841dc96be 100644 (file)
@@ -161,7 +161,7 @@ double FGClouds::buildCloud(SGPropertyNode *cloud_def_root, SGPropertyNode *box_
                                y = w * (y - 0.5) + pos[1]; // E/W
                                z = h * z + pos[2]; // Up/Down. pos[2] is the cloudbase
 
-                               SGVec3f newpos = SGVec3f(x, y, z);
+                               //SGVec3f newpos = SGVec3f(x, y, z);
                                SGNewCloud cld = SGNewCloud(texture_root, cld_def);
 
                                //layer->addCloud(newpos, cld.genCloud());
index 171d716afc3ebd868e99b61ffc9eb354a625604d..11971f08c4d9ffbc8bebced7c28aa7afd71a8595 100644 (file)
@@ -301,9 +301,6 @@ void MetarProperties::set_metar( const char * metar )
         }
     }
 
-    vector<SGMetarCloud> cv = m->getClouds();
-    vector<SGMetarCloud>::const_iterator cloud, cloud_end = cv.end();
-
     {
         static const char * LAYER = "layer";
         SGPropertyNode_ptr cloudsNode = _rootNode->getNode("clouds", true );
index 0d08af84e2d6031d03d5e5d87f5f89334653f05e..293eb2c863a1e9438b623050e3c6e6f37469c75a 100644 (file)
@@ -285,6 +285,7 @@ void AreaSampler::analyse()
         }
     }
 
+/*
     double alt_low_min = 0.0;
     double n_max = 0.0;
     sum = 0.0;
@@ -296,7 +297,7 @@ void AreaSampler::analyse()
             break;
         }
     }
-
+*/
     _altLayered = 0.5 * (_altMin + _altOffset);
 
 #if 0