From 847e472130207f1de2f9a93fe8a30ab844db17f4 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 2 Dec 2017 17:42:53 +0000 Subject: [PATCH] Commented out unused local variables --- src/osgAnimation/StatsHandler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/osgAnimation/StatsHandler.cpp b/src/osgAnimation/StatsHandler.cpp index 3c864ea2d..161634ba2 100644 --- a/src/osgAnimation/StatsHandler.cpp +++ b/src/osgAnimation/StatsHandler.cpp @@ -426,7 +426,7 @@ struct ValueTextDrawCallback : public virtual osg::Drawable::DrawCallback } const std::vector& channels = visitor->getChannels(); - std::map size; + // std::map size; for (int i = 0; i < (int)channels.size(); i++) { std::string name = channels[i]; if (_actions.find(name) == _actions.end()) { @@ -439,14 +439,14 @@ struct ValueTextDrawCallback : public virtual osg::Drawable::DrawCallback //_actions[name].touch(); } _actions[name]._group->setNodeMask(~osg::Node::NodeMask(0x0)); - size[name] = 0; + //size[name] = 0; pos.y() -= characterSize + graphSpacing; } pos.y() -= backgroundMargin; osg::Vec3Array* array = static_cast(_background->getVertexArray()); - float y = (*array)[0][1]; - y = y - (pos.y() + backgroundMargin); //(2 * backgroundMargin + (size.size() * (characterSize + graphSpacing))); + // float y = (*array)[0][1]; + // y = y - (pos.y() + backgroundMargin); //(2 * backgroundMargin + (size.size() * (characterSize + graphSpacing))); (*array)[1][1] = pos.y(); (*array)[2][1] = pos.y(); array->dirty();