Remove unused code and fix a warning

This commit is contained in:
Martin Kleusberg
2018-12-26 13:38:42 +01:00
parent 7f597d07e4
commit 285e0ef49e
2 changed files with 1 additions and 9 deletions

View File

@@ -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);
});
}

View File

@@ -91,14 +91,6 @@ public:
DBBrowserDB& getDb() { return db; }
RemoteDatabase& getRemote() { return *m_remoteDb; }
enum Tabs
{
StructureTab,
BrowseTab,
PragmaTab,
ExecuteTab
};
private:
struct PragmaValues
{