From 6ad09a3a254c91f16d1379770f43e1562534341b Mon Sep 17 00:00:00 2001 From: cutealien Date: Thu, 12 Dec 2019 17:16:51 +0000 Subject: [PATCH] Remove unused function getEnvMapperFromHWnd I suspect we could also get rid of the EnvMap list, not sure what that is about. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6003 dfc29bdd-3216-0410-991c-e03cc46cb475 --- source/Irrlicht/CIrrDeviceWin32.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/source/Irrlicht/CIrrDeviceWin32.cpp b/source/Irrlicht/CIrrDeviceWin32.cpp index 3a640f8..d827755 100644 --- a/source/Irrlicht/CIrrDeviceWin32.cpp +++ b/source/Irrlicht/CIrrDeviceWin32.cpp @@ -677,6 +677,7 @@ static unsigned int LocaleIdToCodepage(unsigned int lcid) namespace { + // TODO: Why do we have a list here? Seems like it can only ever be one. Unfortunately code is older than svn log, so not sure about origins of this. struct SEnvMapper { HWND hWnd; @@ -688,17 +689,6 @@ namespace unsigned int KEYBOARD_INPUT_CODEPAGE = 1252; } -SEnvMapper* getEnvMapperFromHWnd(HWND hWnd) -{ - irr::core::list::Iterator it = EnvMap.begin(); - for (; it!= EnvMap.end(); ++it) - if ((*it).hWnd == hWnd) - return &(*it); - - return 0; -} - - irr::CIrrDeviceWin32* getDeviceFromHWnd(HWND hWnd) { irr::core::list::Iterator it = EnvMap.begin();