summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--src/gui/inventorywindow.cpp14
-rw-r--r--src/gui/inventorywindow.h5
3 files changed, 2 insertions, 19 deletions
diff --git a/ChangeLog b/ChangeLog
index b18048c8..643bcc48 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,8 @@
window is not outside the inner clip area.
* src/engine.cpp, src/engine.h: Fixed current map not deleted on server
change.
+ * src/gui/inventorywindow.cpp, src/gui/inventorywindow.h: Removed
+ redundant destructor.
2007-10-20 Guillaume Melquiond <guillaume.melquiond@gmail.com>
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index fabbf541..4621e59a 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -98,20 +98,6 @@ InventoryWindow::InventoryWindow():
loadWindowState("Inventory");
}
-InventoryWindow::~InventoryWindow()
-{
- delete mUseButton;
- delete mDropButton;
- delete mSplitButton;
- delete mItems;
- delete mInvenScroll;
-
- delete mItemNameLabel;
- delete mItemDescriptionLabel;
- delete mItemEffectLabel;
- delete mWeightLabel;
-}
-
void InventoryWindow::logic()
{
Window::logic();
diff --git a/src/gui/inventorywindow.h b/src/gui/inventorywindow.h
index de2c1509..34883c1c 100644
--- a/src/gui/inventorywindow.h
+++ b/src/gui/inventorywindow.h
@@ -54,11 +54,6 @@ class InventoryWindow : public Window,
InventoryWindow();
/**
- * Destructor.
- */
- ~InventoryWindow();
-
- /**
* Logic (updates buttons and weight information).
*/
void logic();