소스 검색

BUGFIX: Fix compiler warning: variable not referenced.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@515 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
kimmi 15 년 전
부모
커밋
713d4e4b4e
1개의 변경된 파일0개의 추가작업 그리고 9개의 파일을 삭제
  1. 0 9
      code/ValidateDataStructure.cpp

+ 0 - 9
code/ValidateDataStructure.cpp

@@ -209,13 +209,8 @@ void ValidateDSProcess::Execute( aiScene* pScene)
 	// validate the node graph of the scene
 	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
 	if (pScene->mNumMeshes) {
-		// has = true;
 		DoValidation(pScene->mMeshes,pScene->mNumMeshes,"mMeshes","mNumMeshes");
 	}
 	else if (!(mScene->mFlags & AI_SCENE_FLAGS_INCOMPLETE))	{
@@ -227,7 +222,6 @@ void ValidateDSProcess::Execute( aiScene* pScene)
 	
 	// validate all animations
 	if (pScene->mNumAnimations) {
-		// has = true;
 		DoValidation(pScene->mAnimations,pScene->mNumAnimations,
 			"mAnimations","mNumAnimations");
 	}
@@ -237,7 +231,6 @@ void ValidateDSProcess::Execute( aiScene* pScene)
 
 	// validate all cameras
 	if (pScene->mNumCameras) {
-		// has = true;
 		DoValidationWithNameCheck(pScene->mCameras,pScene->mNumCameras,
 			"mCameras","mNumCameras");
 	}
@@ -247,7 +240,6 @@ void ValidateDSProcess::Execute( aiScene* pScene)
 
 	// validate all lights
 	if (pScene->mNumLights) {
-		// has = true;
 		DoValidationWithNameCheck(pScene->mLights,pScene->mNumLights,
 			"mLights","mNumLights");
 	}
@@ -257,7 +249,6 @@ void ValidateDSProcess::Execute( aiScene* pScene)
 	
 	// validate all materials
 	if (pScene->mNumMaterials) {
-		// has = true;
 		DoValidation(pScene->mMaterials,pScene->mNumMaterials,"mMaterials","mNumMaterials");
 	}
 #if 0