Remove CheckGeometryVisitor which was a no-op

This commit is contained in:
scrawl
2017-01-20 23:02:15 +01:00
parent 4a05caf4f7
commit f13fbff251
2 changed files with 1 additions and 37 deletions

View File

@@ -50,8 +50,6 @@
using namespace osgUtil;
// #define GEOMETRYDEPRECATED
void Optimizer::reset()
{
}
@@ -290,14 +288,6 @@ void Optimizer::optimize(osg::Node* node, unsigned int options)
OSG_INFO<<"MERGE_GEODES took "<<osg::Timer::instance()->delta_s(startTick,endTick)<<std::endl;
}
if (options & CHECK_GEOMETRY)
{
OSG_INFO<<"Optimizer::optimize() doing CHECK_GEOMETRY"<<std::endl;
CheckGeometryVisitor mgv(this);
node->accept(mgv);
}
if (options & MAKE_FAST_GEOMETRY)
{
OSG_INFO<<"Optimizer::optimize() doing MAKE_FAST_GEOMETRY"<<std::endl;
@@ -1732,20 +1722,8 @@ struct LessGeometryPrimitiveType
}
};
void Optimizer::CheckGeometryVisitor::apply(osg::Geometry& geom)
{
if (isOperationPermissibleForObject(&geom))
{
#ifdef GEOMETRYDEPRECATED
geom
.computeCorrectBindingsAndArraySizes();
#endif
}
}
void Optimizer::MakeFastGeometryVisitor::apply(osg::Geometry& geom)
{
// GeometryDeprecated CAN REMOVED
if (isOperationPermissibleForObject(&geom))
{
if (geom.checkForDeprecatedData())