CppEditorOutline: Remove unused method

Remove also unused include and forward declaration.

Change-Id: I67d9ea45bc1073653b17faa3433f132a5e43f924
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Jarek Kobus
2024-02-03 02:34:37 +01:00
parent 6deddd15c0
commit ba9ecc9b85
2 changed files with 0 additions and 8 deletions

View File

@@ -150,12 +150,6 @@ QWidget *CppEditorOutline::widget() const
return m_combo; return m_combo;
} }
QSharedPointer<CPlusPlus::Document> getDocument(const Utils::FilePath &filePath)
{
const CPlusPlus::Snapshot snapshot = CppModelManager::snapshot();
return snapshot.document(filePath);
}
void CppEditorOutline::updateNow() void CppEditorOutline::updateNow()
{ {
m_combo->view()->expandAll(); m_combo->view()->expandAll();

View File

@@ -5,7 +5,6 @@
#include "cppoutlinemodel.h" #include "cppoutlinemodel.h"
#include <QModelIndex>
#include <QObject> #include <QObject>
#include <memory> #include <memory>
@@ -16,7 +15,6 @@ class QSortFilterProxyModel;
class QTimer; class QTimer;
QT_END_NAMESPACE QT_END_NAMESPACE
namespace TextEditor { class TextEditorWidget; }
namespace Utils { class TreeViewComboBox; } namespace Utils { class TreeViewComboBox; }
namespace CppEditor { namespace CppEditor {