Skip to content

Commit

Permalink
Remove an unneeded method
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingJellyfish committed Apr 29, 2024
1 parent e64e2d8 commit 5ff449d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 0 additions & 2 deletions lib/irrlicht/include/IGUIEnvironment.h
Original file line number Diff line number Diff line change
Expand Up @@ -612,8 +612,6 @@ class IGUIEnvironment : public virtual IReferenceCounted
virtual void readGUIElement(io::IXMLReader* reader, IGUIElement* node) =0;

virtual void removeHovered(IGUIElement* element) = 0;

virtual bool setChildEnd(IGUIElement* end) = 0;
};


Expand Down
2 changes: 0 additions & 2 deletions lib/irrlicht/source/Irrlicht/CGUIEnvironment.h
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,6 @@ class CGUIEnvironment : public IGUIEnvironment, public IGUIElement
virtual void readGUIElement(io::IXMLReader* reader, IGUIElement* node);

virtual void removeHovered(IGUIElement* element);

virtual bool setChildEnd(IGUIElement* end) { return IGUIElement::setChildEnd(end); }
private:

IGUIElement* getNextElement(bool reverse=false, bool group=false);
Expand Down
4 changes: 2 additions & 2 deletions src/guiengine/widgets/dynamic_ribbon_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,11 @@ void DynamicRibbonWidget::resize()
for (unsigned i = 0; i < MAX_PLAYER_COUNT; i++)
selected[i] = getSelectionIDString(i);
Widget::resize();
GUIEngine::getGUIEnv()->setChildEnd(m_left_widget->m_element);
GUIEngine::getGUIEnv()->getRootGUIElement()->setChildEnd(m_left_widget->m_element);
updateForResizing();
buildInternalStructure();
updateItemDisplay();
GUIEngine::getGUIEnv()->setChildEnd(NULL);
GUIEngine::getGUIEnv()->getRootGUIElement()->setChildEnd(NULL);
for (unsigned i = 0; i < MAX_PLAYER_COUNT; i++)
{
if (!selected[i].empty())
Expand Down
4 changes: 2 additions & 2 deletions src/states_screens/online/networking_lobby.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,11 +441,11 @@ void NetworkingLobby::onResize()
(m_header->m_w >= header_text_width && m_header->getScrollSpeed() != 0.0f))
{
m_header->getIrrlichtElement()->remove();
GUIEngine::getGUIEnv()->setChildEnd(m_back_widget->getIrrlichtElement());
GUIEngine::getGUIEnv()->getRootGUIElement()->setChildEnd(m_back_widget->getIrrlichtElement());
m_header->setScrollSpeed(m_header->m_w < header_text_width ? 0.5f: 0.0f);
m_header->add();
m_header->setText(m_header_text, true);
GUIEngine::getGUIEnv()->setChildEnd(NULL);
GUIEngine::getGUIEnv()->getRootGUIElement()->setChildEnd(NULL);
}
m_header_text_width = header_text_width;
} // onResize
Expand Down

0 comments on commit 5ff449d

Please sign in to comment.