From c1b28ff1ce6164cf7063fdae6b0ef7a54d72cee1 Mon Sep 17 00:00:00 2001 From: Marcel Metz Date: Mon, 12 Mar 2012 15:47:48 +0100 Subject: [PATCH] Removed unreferenced variables. --- .../SimpleTexturedOpenGL/src/model_loading.cpp | 1 - tools/assimp_view/Display.cpp | 4 ---- 2 files changed, 5 deletions(-) diff --git a/samples/SimpleTexturedOpenGL/SimpleTexturedOpenGL/src/model_loading.cpp b/samples/SimpleTexturedOpenGL/SimpleTexturedOpenGL/src/model_loading.cpp index e0d0a629c..253387509 100644 --- a/samples/SimpleTexturedOpenGL/SimpleTexturedOpenGL/src/model_loading.cpp +++ b/samples/SimpleTexturedOpenGL/SimpleTexturedOpenGL/src/model_loading.cpp @@ -177,7 +177,6 @@ int LoadGLTextures(const aiScene* scene) /* Before calling ilInit() version should be checked. */ if (ilGetInteger(IL_VERSION_NUM) < IL_VERSION) { - ILint test = ilGetInteger(IL_VERSION_NUM); /// wrong DevIL version /// std::string err_msg = "Wrong DevIL version. Old devil.dll in system32/SysWow64?"; char* cErr_msg = (char *) err_msg.c_str(); diff --git a/tools/assimp_view/Display.cpp b/tools/assimp_view/Display.cpp index 98ca794ec..380d7b2fb 100644 --- a/tools/assimp_view/Display.cpp +++ b/tools/assimp_view/Display.cpp @@ -287,10 +287,6 @@ int CDisplay::ReplaceCurrentTexture(const char* szPath) TreeView_SetItem(GetDlgItem(g_hDlg,IDC_TREE1), m_pcCurrentTexture->hTreeItem); - // change this in the old aiMaterial structure, too - aiMaterial* pcMat = (aiMaterial*) - g_pcAsset->pcScene->mMaterials[m_pcCurrentTexture->iMatIndex]; - // update all meshes referencing this material for (unsigned int i = 0; i < g_pcAsset->pcScene->mNumMeshes;++i) {