BUGFIX: Fix compiler warning: variable not referenced.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@515 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
kimmi 2009-12-24 11:26:34 +00:00
parent 84ff1090c2
commit 713d4e4b4e
1 changed files with 0 additions and 9 deletions

View File

@ -209,13 +209,8 @@ void ValidateDSProcess::Execute( aiScene* pScene)
// validate the node graph of the scene // validate the node graph of the scene
Validate(pScene->mRootNode); Validate(pScene->mRootNode);
// At least one of the mXXX arrays must be non-empty or we'll flag
// the scene as invalid
bool has = false;
// validate all meshes // validate all meshes
if (pScene->mNumMeshes) { if (pScene->mNumMeshes) {
// has = true;
DoValidation(pScene->mMeshes,pScene->mNumMeshes,"mMeshes","mNumMeshes"); DoValidation(pScene->mMeshes,pScene->mNumMeshes,"mMeshes","mNumMeshes");
} }
else if (!(mScene->mFlags & AI_SCENE_FLAGS_INCOMPLETE)) { else if (!(mScene->mFlags & AI_SCENE_FLAGS_INCOMPLETE)) {
@ -227,7 +222,6 @@ void ValidateDSProcess::Execute( aiScene* pScene)
// validate all animations // validate all animations
if (pScene->mNumAnimations) { if (pScene->mNumAnimations) {
// has = true;
DoValidation(pScene->mAnimations,pScene->mNumAnimations, DoValidation(pScene->mAnimations,pScene->mNumAnimations,
"mAnimations","mNumAnimations"); "mAnimations","mNumAnimations");
} }
@ -237,7 +231,6 @@ void ValidateDSProcess::Execute( aiScene* pScene)
// validate all cameras // validate all cameras
if (pScene->mNumCameras) { if (pScene->mNumCameras) {
// has = true;
DoValidationWithNameCheck(pScene->mCameras,pScene->mNumCameras, DoValidationWithNameCheck(pScene->mCameras,pScene->mNumCameras,
"mCameras","mNumCameras"); "mCameras","mNumCameras");
} }
@ -247,7 +240,6 @@ void ValidateDSProcess::Execute( aiScene* pScene)
// validate all lights // validate all lights
if (pScene->mNumLights) { if (pScene->mNumLights) {
// has = true;
DoValidationWithNameCheck(pScene->mLights,pScene->mNumLights, DoValidationWithNameCheck(pScene->mLights,pScene->mNumLights,
"mLights","mNumLights"); "mLights","mNumLights");
} }
@ -257,7 +249,6 @@ void ValidateDSProcess::Execute( aiScene* pScene)
// validate all materials // validate all materials
if (pScene->mNumMaterials) { if (pScene->mNumMaterials) {
// has = true;
DoValidation(pScene->mMaterials,pScene->mNumMaterials,"mMaterials","mNumMaterials"); DoValidation(pScene->mMaterials,pScene->mNumMaterials,"mMaterials","mNumMaterials");
} }
#if 0 #if 0