From d181a2fb30ac73173fba851d4b2f7ca6f7d46ca0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 21 Aug 2017 23:27:33 +0300 Subject: Remove useless variables. --- src/gui/windows/inventorywindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gui') diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp index 9fc6b6b38..27caa2019 100644 --- a/src/gui/windows/inventorywindow.cpp +++ b/src/gui/windows/inventorywindow.cpp @@ -934,9 +934,8 @@ InventoryWindow *InventoryWindow::getFirstVisible() if (((*it) != nullptr) && (*it)->isWindowVisible()) list.insert(*it); } - InventoryWindow *const window = dynamic_cast( + return dynamic_cast( windowContainer->findFirstWidget(list)); - return window; } void InventoryWindow::nextTab() -- cgit v1.2.3-70-g09d2