mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-23 04:45:24 +02:00
Remove dead code behind Irrlicht version checks
This commit is contained in:
@@ -200,7 +200,6 @@ void GUIEditBox::sendGuiEvent(EGUI_EVENT_TYPE type)
|
||||
bool GUIEditBox::OnEvent(const SEvent &event)
|
||||
{
|
||||
if (isEnabled()) {
|
||||
|
||||
switch (event.EventType) {
|
||||
case EET_GUI_EVENT:
|
||||
if (event.GUIEvent.EventType == EGET_ELEMENT_FOCUS_LOST) {
|
||||
@@ -218,11 +217,9 @@ bool GUIEditBox::OnEvent(const SEvent &event)
|
||||
if (processMouse(event))
|
||||
return true;
|
||||
break;
|
||||
#if (IRRLICHT_VERSION_MT_REVISION >= 2)
|
||||
case EET_STRING_INPUT_EVENT:
|
||||
inputString(*event.StringInput.Str);
|
||||
return true;
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user