]> git.mxchange.org Git - simgear.git/commitdiff
Remove now unused function
authorfrohlich <frohlich>
Sun, 11 Jun 2006 13:59:59 +0000 (13:59 +0000)
committerfrohlich <frohlich>
Sun, 11 Jun 2006 13:59:59 +0000 (13:59 +0000)
simgear/scene/material/matlib.cxx
simgear/scene/material/matlib.hxx

index e49758312f98f65e906691de8e9d812835d07039..b68a999015f8e23fe10a3da523a85728ad6da289 100644 (file)
@@ -584,37 +584,3 @@ const SGMaterial* SGMaterialLib::findMaterial(/*const*/ssgLeaf* leaf) const
 
   return matUserData->getMaterial();
 }
-
-bool SGMaterialLib::find( ssgSimpleState* state, string & material ) const
-{
-  // is obsolete, just kept here to avoid a race condition with
-  // SimGear/flightgear cvs checkouts ...
-    bool found = false;
-    ssgSimpleState *state_mat;
-
-    material = "";
-
-    for( const_material_map_iterator iter = begin(); iter != end(); iter++ )
-    {
-        int nb_tex = (*iter).second->get_num();
-
-        // many textures per material
-        for( int i = 0; i < nb_tex; i++ )
-        {
-            // material state
-            state_mat = (*iter).second->get_state( i );
-
-            if( state_mat == state )
-            {
-                 material = (*iter).first.c_str();
-                found = true;
-                break;
-            }
-        }
-
-        if( found )
-            break;
-    }
-
-    return found;
-}
index c5aaed7c72fa15d53b559a8f6a061777bff67ad7..057c42207a6b04e276fa9d5a632528fce7d21c7d 100644 (file)
@@ -88,7 +88,6 @@ public:
     const_material_map_iterator end() const { return matlib.end(); }
 
     const SGMaterial* findMaterial(/*const*/ssgLeaf* leaf) const;
-    bool find( ssgSimpleState*, string & material ) const;
 
     // Destructor
     ~SGMaterialLib ( void );