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
This commit is contained in:
cutealien 2019-12-12 17:16:51 +00:00
parent 7061c42008
commit 6ad09a3a25

@ -677,6 +677,7 @@ static unsigned int LocaleIdToCodepage(unsigned int lcid)
namespace 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 struct SEnvMapper
{ {
HWND hWnd; HWND hWnd;
@ -688,17 +689,6 @@ namespace
unsigned int KEYBOARD_INPUT_CODEPAGE = 1252; unsigned int KEYBOARD_INPUT_CODEPAGE = 1252;
} }
SEnvMapper* getEnvMapperFromHWnd(HWND hWnd)
{
irr::core::list<SEnvMapper>::Iterator it = EnvMap.begin();
for (; it!= EnvMap.end(); ++it)
if ((*it).hWnd == hWnd)
return &(*it);
return 0;
}
irr::CIrrDeviceWin32* getDeviceFromHWnd(HWND hWnd) irr::CIrrDeviceWin32* getDeviceFromHWnd(HWND hWnd)
{ {
irr::core::list<SEnvMapper>::Iterator it = EnvMap.begin(); irr::core::list<SEnvMapper>::Iterator it = EnvMap.begin();