]> git.mxchange.org Git - simgear.git/commitdiff
scenery: Remove unused argument from runway signs.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Tue, 6 Mar 2012 20:14:24 +0000 (21:14 +0100)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Wed, 7 Mar 2012 05:36:27 +0000 (06:36 +0100)
simgear/scene/tgdb/TileEntry.cxx
simgear/scene/tgdb/apt_signs.cxx
simgear/scene/tgdb/apt_signs.hxx

index 92a6dab4ebe993f6d38bec48b5d01bd0f93c3978..166da43dd57d72b858ca3ce3c82d0e1c7b5e0796 100644 (file)
@@ -362,9 +362,9 @@ TileEntry::loadTileByFileName(const string& fileName,
 
             osg::Node *custom_obj = 0;
             if (obj->type == OBJECT_SIGN)
-                custom_obj = SGMakeSign(opt->getMaterialLib(), custom_path.str(), obj->name);
+                custom_obj = SGMakeSign(opt->getMaterialLib(), obj->name);
             else
-                custom_obj = SGMakeRunwaySign(opt->getMaterialLib(), custom_path.str(), obj->name);
+                custom_obj = SGMakeRunwaySign(opt->getMaterialLib(), obj->name);
 
             // wire the pieces together
             if ( custom_obj != NULL ) {
index 80328d23d206264551bbd7b694ea303c6f5e4e4e..a1a42ce0a888eb0ba3e06e08fc9e49a945ec47f0 100644 (file)
@@ -90,7 +90,7 @@ struct pair {
 // see $FG_ROOT/Docs/README.scenery
 //
 osg::Node*
-SGMakeSign(SGMaterialLib *matlib, const string& path, const string& content)
+SGMakeSign(SGMaterialLib *matlib, const string& content)
 {
     double sign_height = 1.0;  // meter
     bool lighted = true;
@@ -370,7 +370,7 @@ SGMakeSign(SGMaterialLib *matlib, const string& path, const string& content)
 }
 
 osg::Node*
-SGMakeRunwaySign(SGMaterialLib *matlib, const string& path, const string& name)
+SGMakeRunwaySign(SGMaterialLib *matlib, const string& name)
 {
     // for demo purposes we assume each element (letter) is 1x1 meter.
     // Sign is placed 0.25 meters above the ground
index 8e3718a4d04be23613b25596732e016bf7b7da5e..c908be9ea79f30ae3c365b1c92f9b18a3bdb7115 100644 (file)
@@ -42,13 +42,11 @@ using std::string;
 
 
 // Generate a generic sign
-osg::Node* SGMakeSign( SGMaterialLib *matlib,
-                       const string& path, const string& content );
+osg::Node* SGMakeSign( SGMaterialLib *matlib, const string& content );
 
 
 // Generate a runway sign
-osg::Node* SGMakeRunwaySign( SGMaterialLib *matlib,
-                             const string& path, const string& name );
+osg::Node* SGMakeRunwaySign( SGMaterialLib *matlib, const string& name );
 
 
 #endif // _SG_APT_SIGNS_HXX