diff --git a/src/gui/tabwidget.cpp b/src/gui/tabwidget.cpp index 7fb5bd031..c335c9ef3 100755 --- a/src/gui/tabwidget.cpp +++ b/src/gui/tabwidget.cpp @@ -170,10 +170,6 @@ bool TabWidget::closeTab(int index) { } } -bool TabWidget::closeCurrentTab() { - return closeTab(currentIndex()); -} - void TabWidget::closeAllTabsExceptCurrent() { // Close tabs after active tab. int index_of_active = currentIndex(); diff --git a/src/gui/tabwidget.h b/src/gui/tabwidget.h index 6c2719faa..bd608a97b 100755 --- a/src/gui/tabwidget.h +++ b/src/gui/tabwidget.h @@ -99,13 +99,9 @@ class TabWidget : public QTabWidget { void changeTitle(int index, const QString &new_title); void changeIcon(int index, const QIcon &new_icon); - // Closes tab with given index and deletes contained widget. + // Tab closing. bool closeTab(int index); - bool closeCurrentTab(); - - // Closes all "closable" tabs except the active tab. void closeAllTabsExceptCurrent(); - void closeAllTabs(); // Opens main menu.