mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-10 09:43:52 +01:00
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:
parent
7061c42008
commit
6ad09a3a25
@ -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<SEnvMapper>::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<SEnvMapper>::Iterator it = EnvMap.begin();
|
||||
|
Loading…
Reference in New Issue
Block a user