From a4bdd8f7bef9ce0002a9015e0ebc9c4cb8dd3614 Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Thu, 2 Aug 2012 23:38:06 +0200 Subject: 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 --- src/gui/debugwindow.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/gui') 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; -- cgit v1.2.3-70-g09d2