forked from qt-creator/qt-creator
CppEditor: Remove unused code
Change-Id: Ife0f6609a55de903f5f90af0dc6b72209e02f5af Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -148,21 +148,6 @@ bool CppEditorOutline::isSorted() const
|
||||
return m_proxyModel->sortColumn() == 0;
|
||||
}
|
||||
|
||||
void CppEditorOutline::setSorted(bool sort)
|
||||
{
|
||||
if (sort != isSorted()) {
|
||||
if (sort)
|
||||
m_proxyModel->sort(0, Qt::AscendingOrder);
|
||||
else
|
||||
m_proxyModel->sort(-1, Qt::AscendingOrder);
|
||||
{
|
||||
QSignalBlocker blocker(m_sortAction);
|
||||
m_sortAction->setChecked(m_proxyModel->sortColumn() == 0);
|
||||
}
|
||||
updateIndexNow();
|
||||
}
|
||||
}
|
||||
|
||||
AbstractOverviewModel *CppEditorOutline::model() const
|
||||
{
|
||||
return m_model.get();
|
||||
|
||||
@@ -62,7 +62,6 @@ signals:
|
||||
|
||||
public slots:
|
||||
void updateIndex();
|
||||
void setSorted(bool sort);
|
||||
|
||||
private:
|
||||
void updateNow();
|
||||
|
||||
@@ -71,7 +71,6 @@ public:
|
||||
static CppFileSettings *fileSettings();
|
||||
|
||||
signals:
|
||||
void outlineSortingChanged(bool sort);
|
||||
void typeHierarchyRequested();
|
||||
void includeHierarchyRequested();
|
||||
|
||||
|
||||
@@ -458,10 +458,6 @@ void CppEditorWidget::finalizeInitialization()
|
||||
// function combo box sorting
|
||||
d->m_cppEditorOutline = new CppEditorOutline(this);
|
||||
|
||||
// TODO: Nobody emits this signal... Remove?
|
||||
connect(CppEditorPlugin::instance(), &CppEditorPlugin::outlineSortingChanged,
|
||||
outline(), &CppEditorOutline::setSorted);
|
||||
|
||||
connect(d->m_cppEditorDocument, &CppEditorDocument::codeWarningsUpdated,
|
||||
this, &CppEditorWidget::onCodeWarningsUpdated);
|
||||
connect(d->m_cppEditorDocument, &CppEditorDocument::ifdefedOutBlocksUpdated,
|
||||
|
||||
Reference in New Issue
Block a user