mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-16 18:01:40 +00:00
Remove dead code (#10845)
This commit is contained in:
parent
67aa75d444
commit
4c76239818
31 changed files with 8 additions and 331 deletions
|
@ -39,7 +39,6 @@ GUIButtonItemImage::GUIButtonItemImage(gui::IGUIEnvironment *environment,
|
|||
item, getActiveFont(), client);
|
||||
sendToBack(m_image);
|
||||
|
||||
m_item_name = item;
|
||||
m_client = client;
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,6 @@ public:
|
|||
Client *client);
|
||||
|
||||
private:
|
||||
std::string m_item_name;
|
||||
Client *m_client;
|
||||
GUIItemImage *m_image;
|
||||
};
|
||||
|
|
|
@ -68,8 +68,6 @@ public:
|
|||
// Irrlicht draw method
|
||||
virtual void draw();
|
||||
|
||||
bool canTakeFocus(gui::IGUIElement* element) { return false; }
|
||||
|
||||
virtual bool OnEvent(const SEvent& event);
|
||||
|
||||
virtual void setVisible(bool visible);
|
||||
|
|
|
@ -486,8 +486,6 @@ void GUIEngine::drawHeader(video::IVideoDriver *driver)
|
|||
splashrect += v2s32((screensize.Width/2)-(splashsize.X/2),
|
||||
((free_space/2)-splashsize.Y/2)+10);
|
||||
|
||||
video::SColor bgcolor(255,50,50,50);
|
||||
|
||||
draw2DImageFilterScaled(driver, texture, splashrect,
|
||||
core::rect<s32>(core::position2d<s32>(0,0),
|
||||
core::dimension2di(texture->getOriginalSize())),
|
||||
|
|
|
@ -3505,8 +3505,6 @@ bool GUIFormSpecMenu::getAndroidUIInput()
|
|||
|
||||
GUIInventoryList::ItemSpec GUIFormSpecMenu::getItemAtPos(v2s32 p) const
|
||||
{
|
||||
core::rect<s32> imgrect(0, 0, imgsize.X, imgsize.Y);
|
||||
|
||||
for (const GUIInventoryList *e : m_inventorylists) {
|
||||
s32 item_index = e->getItemIndexAtPos(p);
|
||||
if (item_index != -1)
|
||||
|
@ -3837,7 +3835,7 @@ ItemStack GUIFormSpecMenu::verifySelectedItem()
|
|||
return ItemStack();
|
||||
}
|
||||
|
||||
void GUIFormSpecMenu::acceptInput(FormspecQuitMode quitmode=quit_mode_no)
|
||||
void GUIFormSpecMenu::acceptInput(FormspecQuitMode quitmode)
|
||||
{
|
||||
if(m_text_dst)
|
||||
{
|
||||
|
|
|
@ -253,7 +253,7 @@ public:
|
|||
void updateSelectedItem();
|
||||
ItemStack verifySelectedItem();
|
||||
|
||||
void acceptInput(FormspecQuitMode quitmode);
|
||||
void acceptInput(FormspecQuitMode quitmode=quit_mode_no);
|
||||
bool preprocessEvent(const SEvent& event);
|
||||
bool OnEvent(const SEvent& event);
|
||||
bool doPause;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue