Removed unnecessary code.

This commit is contained in:
hiker 2015-12-02 08:17:03 +11:00
parent 0f52f0bdd9
commit 03d857db3e
2 changed files with 0 additions and 27 deletions

View File

@ -183,28 +183,6 @@ void NetworkKartSelectionScreen::playerSelected(uint8_t race_id,
m_kart_widgets[widget_id].markAsReady(); // mark player ready
} // playerSelected
// ----------------------------------------------------------------------------
/**
* Callback handling events from the kart selection menu
*/
void NetworkKartSelectionScreen::eventCallback(GUIEngine::Widget* widget,
const std::string& name,
const int playerID)
{
if (name == "karts")
{
KartSelectionScreen::eventCallback(widget, name, playerID);
}
else if (name == "back")
{
KartSelectionScreen::eventCallback(widget, name, playerID);
}
else // name != karts
{
KartSelectionScreen::eventCallback(widget, name, playerID);
}
} // eventCallback
// ----------------------------------------------------------------------------
bool NetworkKartSelectionScreen::onEscapePressed()
{

View File

@ -36,12 +36,7 @@ protected:
void considerKartHovered(uint8_t widget_id, std::string selection);
public:
virtual void init() OVERRIDE;
virtual void eventCallback(GUIEngine::Widget* widget,
const std::string& name,
const int playerID) OVERRIDE;
virtual bool onEscapePressed() OVERRIDE;
virtual void playerSelected(uint8_t race_id, const std::string &kart_name);
};