Removed superfluous deleteAutoHideWidgets() function from CDockContainerWidget

This commit is contained in:
Uwe Kindler 2022-11-02 14:41:41 +01:00
parent 159579fb48
commit 716207f600
3 changed files with 1 additions and 24 deletions

View File

@ -752,7 +752,7 @@ void CMainWindow::onViewToggled(bool Open)
return;
}
qDebug() << DockWidget->objectName() << " viewToggled(" << Open << ")";
//qDebug() << DockWidget->objectName() << " viewToggled(" << Open << ")";
}

View File

@ -1338,12 +1338,6 @@ CDockContainerWidget::~CDockContainerWidget()
d->DockManager->removeDockContainer(this);
}
auto AutoHideWidgets = d->AutoHideWidgets;
for (auto AutohideWidget : AutoHideWidgets)
{
delete AutohideWidget;
}
delete d;
}
@ -1430,17 +1424,6 @@ bool CDockContainerWidget::event(QEvent *e)
}
//============================================================================
void CDockContainerWidget::deleteAutoHideWidgets()
{
for (auto AutohideWidget : d->AutoHideWidgets)
{
AutohideWidget->cleanupAndDelete();
}
d->AutoHideWidgets.clear();
}
//============================================================================
QList<CAutoHideDockContainer*> CDockContainerWidget::autoHideWidgets() const
{

View File

@ -84,12 +84,6 @@ protected:
*/
virtual bool event(QEvent *e) override;
/*
* Delete function for resetting the auto hide widget list
* Used during restore
*/
void deleteAutoHideWidgets();
/**
* Access function for the internal root splitter
*/