Do not declare unused variables

pull/593/head
Andrei Kortunov 4 years ago
parent 2009916dd8
commit 9647b670e4

@ -606,7 +606,7 @@ void CSVRender::TerrainTextureMode::createTexture(std::string textureFileName)
newId = CSMWorld::LandTexture::createUniqueRecordId(0, counter);
if (ltexTable.getRecord(newId).isDeleted() == 0) counter = (counter + 1) % maxCounter;
}
catch (const std::exception& e)
catch (const std::exception&)
{
newId = CSMWorld::LandTexture::createUniqueRecordId(0, counter);
freeIndexFound = true;

@ -402,7 +402,7 @@ namespace MWRender
refs[ref.mRefNum] = ref;
}
}
catch (std::exception& e)
catch (std::exception&)
{
continue;
}

@ -84,7 +84,7 @@ namespace MWWorld
mTerrain->cacheCell(mTerrainView.get(), mX, mY);
mPreloadedObjects.insert(mLandManager->getLand(mX, mY));
}
catch(std::exception& e)
catch(std::exception&)
{
}
}
@ -127,7 +127,7 @@ namespace MWWorld
mPreloadedObjects.insert(mBulletShapeManager->getShape(mesh));
}
catch (std::exception& e)
catch (std::exception&)
{
// ignore error for now, would spam the log too much
// error will be shown when visiting the cell

@ -965,7 +965,7 @@ namespace MWWorld
{
mSceneManager->getTemplate(mMesh);
}
catch (std::exception& e)
catch (std::exception&)
{
}
}
@ -1049,7 +1049,7 @@ namespace MWWorld
exteriorPositions.emplace_back(pos, gridCenterToBounds(getNewGridCenter(pos)));
}
}
catch (std::exception& e)
catch (std::exception&)
{
// ignore error for now, would spam the log too much
}

@ -3895,7 +3895,7 @@ namespace MWWorld
if (!model.empty())
scene->preload(model, ref.getPtr().getClass().useAnim());
}
catch(std::exception& e)
catch(std::exception&)
{
}
}

@ -77,7 +77,7 @@ namespace Resource
mTarget.mTextKeys.emplace(parseTimeSignature(line), parseTextKey(line));
}
}
catch (std::exception& e)
catch (std::exception&)
{
Log(Debug::Warning) << "No textkey file found for " << mNormalized;
}

Loading…
Cancel
Save