Commented out unused local variables

This commit is contained in:
Robert Osfield
2017-12-02 17:42:53 +00:00
parent e44fb08f6a
commit 847e472130

View File

@@ -426,7 +426,7 @@ struct ValueTextDrawCallback : public virtual osg::Drawable::DrawCallback
}
const std::vector<std::string>& channels = visitor->getChannels();
std::map<std::string,int> size;
// std::map<std::string,int> 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<osg::Vec3Array*>(_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();