Removed unused variables

This commit is contained in:
ntfshard 2015-08-24 00:35:11 +03:00 committed by Alessandro Ranellucci
parent 32f5538e0d
commit d62f33b0b4
6 changed files with 8 additions and 12 deletions

View file

@ -162,12 +162,10 @@ Model::has_objects_with_no_instances() const
bool
Model::add_default_instances()
{
bool added = false;
// apply a default position to all objects not having one
for (ModelObjectPtrs::const_iterator o = this->objects.begin(); o != this->objects.end(); ++o) {
if ((*o)->instances.empty()) {
(*o)->add_instance();
added = true;
}
}
return true;