summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorStefan Beller <stefanbeller@googlemail.com>2012-08-02 23:38:06 +0200
committerStefan Beller <stefanbeller@googlemail.com>2012-08-02 23:38:06 +0200
commita4bdd8f7bef9ce0002a9015e0ebc9c4cb8dd3614 (patch)
tree4e86324c312f2d78b261d88d5b470a4a7cbf9f94 /src/gui
parentd2df9cfb227ab8d6a302183c5f4a3377bb8f5140 (diff)
downloadmana-client-a4bdd8f7bef9ce0002a9015e0ebc9c4cb8dd3614.tar.gz
mana-client-a4bdd8f7bef9ce0002a9015e0ebc9c4cb8dd3614.tar.bz2
mana-client-a4bdd8f7bef9ce0002a9015e0ebc9c4cb8dd3614.tar.xz
mana-client-a4bdd8f7bef9ce0002a9015e0ebc9c4cb8dd3614.zip
Removing constructor of DebugSwitches.
The class DebugSwitches is a derived class from Container, 'which automatically deletes its child widgets, so there is no need for such fragile cleanup code.' acked-by: bjorn
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/debugwindow.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/gui/debugwindow.cpp b/src/gui/debugwindow.cpp
index 13babb73..cb871b44 100644
--- a/src/gui/debugwindow.cpp
+++ b/src/gui/debugwindow.cpp
@@ -179,21 +179,6 @@ public:
mSpecial3->addActionListener(this);
}
- ~DebugSwitches()
- {
- delete mGrid;
- delete mCollisionTiles;
- delete mBeingCollisionRadius;
- delete mBeingPosition;
- delete mBeingPath;
- delete mMousePath;
- delete mBeingIds;
- delete mSpecialNormal;
- delete mSpecial1;
- delete mSpecial2;
- delete mSpecial3;
- }
-
void action(const gcn::ActionEvent &event)
{
int flags = 0;