diff --git a/src/osgViewer/CompositeViewer.cpp b/src/osgViewer/CompositeViewer.cpp index f0f08311f..39eb98b38 100644 --- a/src/osgViewer/CompositeViewer.cpp +++ b/src/osgViewer/CompositeViewer.cpp @@ -912,11 +912,7 @@ void CompositeViewer::eventTraversal() if (_views.empty()) return; -#if 1 double cutOffTime = _frameStamp->getReferenceTime(); -#else - double cutOffTime = (_runFrameScheme==ON_DEMAND) ? DBL_MAX : _frameStamp->getReferenceTime(); -#endif double beginEventTraversal = osg::Timer::instance()->delta_s(_startTick, osg::Timer::instance()->tick()); diff --git a/src/osgViewer/Viewer.cpp b/src/osgViewer/Viewer.cpp index e6f47f14b..c5011aaea 100644 --- a/src/osgViewer/Viewer.cpp +++ b/src/osgViewer/Viewer.cpp @@ -826,11 +826,7 @@ void Viewer::eventTraversal() { if (_done) return; -#if 1 double cutOffTime = _frameStamp->getReferenceTime(); -#else - double cutOffTime = (_runFrameScheme==ON_DEMAND) ? DBL_MAX : _frameStamp->getReferenceTime(); -#endif double beginEventTraversal = osg::Timer::instance()->delta_s(_startTick, osg::Timer::instance()->tick());