diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/skilldialog.cpp | 10 | ||||
-rw-r--r-- | src/gui/skilldialog.h | 3 | ||||
-rw-r--r-- | src/gui/specialswindow.cpp | 10 | ||||
-rw-r--r-- | src/gui/specialswindow.h | 3 |
4 files changed, 0 insertions, 26 deletions
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp index f6ab226a..6e7b3e70 100644 --- a/src/gui/skilldialog.cpp +++ b/src/gui/skilldialog.cpp @@ -122,16 +122,6 @@ void SkillDialog::action(const gcn::ActionEvent &event) } } -void SkillDialog::logic() -{ - Window::logic(); - - Tab *tab = dynamic_cast<Tab*>(mTabs->getSelectedTab()); - if (tab != mCurrentTab) { - mCurrentTab = tab; - } -} - std::string SkillDialog::update(int id) { SkillMap::iterator i = mSkills.find(id); diff --git a/src/gui/skilldialog.h b/src/gui/skilldialog.h index 8fa7443d..12cb3581 100644 --- a/src/gui/skilldialog.h +++ b/src/gui/skilldialog.h @@ -54,8 +54,6 @@ class SkillDialog : public Window, public gcn::ActionListener */ void action(const gcn::ActionEvent &event); - void logic(); - /** * Update the given skill's display */ @@ -73,7 +71,6 @@ class SkillDialog : public Window, public gcn::ActionListener private: typedef std::map<int, SkillInfo*> SkillMap; SkillMap mSkills; - Tab *mCurrentTab; TabbedArea *mTabs; Label *mPointsLabel; }; diff --git a/src/gui/specialswindow.cpp b/src/gui/specialswindow.cpp index 5d2ab676..35839b39 100644 --- a/src/gui/specialswindow.cpp +++ b/src/gui/specialswindow.cpp @@ -126,16 +126,6 @@ void SpecialsWindow::action(const gcn::ActionEvent &event) } } -void SpecialsWindow::logic() -{ - Window::logic(); - - Tab *tab = dynamic_cast<Tab*>(mTabs->getSelectedTab()); - if (tab != mCurrentTab) { - mCurrentTab = tab; - } -} - std::string SpecialsWindow::update(int id) { // TODO diff --git a/src/gui/specialswindow.h b/src/gui/specialswindow.h index 17c29597..cc2a68b3 100644 --- a/src/gui/specialswindow.h +++ b/src/gui/specialswindow.h @@ -48,8 +48,6 @@ class SpecialsWindow : public Window, public gcn::ActionListener { */ void action(const gcn::ActionEvent &actionEvent); - void logic(); - /** * Update the given special's display */ @@ -60,7 +58,6 @@ class SpecialsWindow : public Window, public gcn::ActionListener { private: typedef std::map<int, SpecialInfo*> SpecialMap; SpecialMap mSpecials; - Tab *mCurrentTab; TabbedArea *mTabs; }; |