From 285e0ef49ea88d29fa6731699acbd0ce12f2a3ca Mon Sep 17 00:00:00 2001 From: Martin Kleusberg Date: Wed, 26 Dec 2018 13:38:42 +0100 Subject: [PATCH] Remove unused code and fix a warning --- src/MainWindow.cpp | 2 +- src/MainWindow.h | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index d291e2e0..becdd346 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -362,7 +362,7 @@ void MainWindow::init() // Connect tabCloseRequested for setting checked the appropiate menu entry. // Note these are called after the actual tab is closed only because they are connected // after connecting closeTab. - connect(ui->mainTab, &QTabWidget::tabCloseRequested, [=](int index) { + connect(ui->mainTab, &QTabWidget::tabCloseRequested, [=](int /*index*/) { action->setChecked(ui->mainTab->indexOf(widget) != -1); }); } diff --git a/src/MainWindow.h b/src/MainWindow.h index ed14b837..869b3dcc 100644 --- a/src/MainWindow.h +++ b/src/MainWindow.h @@ -91,14 +91,6 @@ public: DBBrowserDB& getDb() { return db; } RemoteDatabase& getRemote() { return *m_remoteDb; } - enum Tabs - { - StructureTab, - BrowseTab, - PragmaTab, - ExecuteTab - }; - private: struct PragmaValues {