summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-08-14 20:31:49 -0600
committerJared Adams <jaxad0127@gmail.com>2009-08-14 20:33:44 -0600
commit7f83b173354b3e9efe0b9c99879d8db5bc800e17 (patch)
tree1ab7d232a157e75cd2f2f37b16a1b0c89cfb898a /src/gui
parenta38976c47120dc80cf370018f1479ec591d4560c (diff)
downloadmana-7f83b173354b3e9efe0b9c99879d8db5bc800e17.tar.gz
mana-7f83b173354b3e9efe0b9c99879d8db5bc800e17.tar.bz2
mana-7f83b173354b3e9efe0b9c99879d8db5bc800e17.tar.xz
mana-7f83b173354b3e9efe0b9c99879d8db5bc800e17.zip
Remove some uneeded code
This should've been removed earlier with the layout fixes.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/skilldialog.cpp10
-rw-r--r--src/gui/skilldialog.h3
-rw-r--r--src/gui/specialswindow.cpp10
-rw-r--r--src/gui/specialswindow.h3
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;
};