diff --git a/src/plugins/clangcodemodel/CMakeLists.txt b/src/plugins/clangcodemodel/CMakeLists.txt index 52349f1dd20..c040b2c4f04 100644 --- a/src/plugins/clangcodemodel/CMakeLists.txt +++ b/src/plugins/clangcodemodel/CMakeLists.txt @@ -40,7 +40,6 @@ add_qtc_plugin(ClangCodeModel clanghighlightingresultreporter.cpp clanghighlightingresultreporter.h clangisdiagnosticrelatedtolocation.h clangmodelmanagersupport.cpp clangmodelmanagersupport.h - clangoverviewmodel.cpp clangoverviewmodel.h clangpreprocessorassistproposalitem.cpp clangpreprocessorassistproposalitem.h clangprojectsettings.cpp clangprojectsettings.h clangprojectsettingswidget.cpp clangprojectsettingswidget.h clangprojectsettingswidget.ui diff --git a/src/plugins/clangcodemodel/clangcodemodel.qbs b/src/plugins/clangcodemodel/clangcodemodel.qbs index 6cc695f233f..1f4cd572595 100644 --- a/src/plugins/clangcodemodel/clangcodemodel.qbs +++ b/src/plugins/clangcodemodel/clangcodemodel.qbs @@ -85,8 +85,6 @@ QtcPlugin { "clangisdiagnosticrelatedtolocation.h", "clangmodelmanagersupport.cpp", "clangmodelmanagersupport.h", - "clangoverviewmodel.cpp", - "clangoverviewmodel.h", "clangpreprocessorassistproposalitem.cpp", "clangpreprocessorassistproposalitem.h", "clangprojectsettings.cpp", diff --git a/src/plugins/clangcodemodel/clangmodelmanagersupport.cpp b/src/plugins/clangcodemodel/clangmodelmanagersupport.cpp index 610619a9d11..c507a4f2eb6 100644 --- a/src/plugins/clangcodemodel/clangmodelmanagersupport.cpp +++ b/src/plugins/clangcodemodel/clangmodelmanagersupport.cpp @@ -30,7 +30,6 @@ #include "clangdquickfixfactory.h" #include "clangeditordocumentprocessor.h" #include "clangdlocatorfilters.h" -#include "clangoverviewmodel.h" #include "clangprojectsettings.h" #include "clangrefactoringengine.h" #include "clangutils.h" @@ -41,6 +40,7 @@ #include #include +#include #include #include #include @@ -222,7 +222,7 @@ CppEditor::RefactoringEngineInterface &ClangModelManagerSupport::refactoringEngi std::unique_ptr ClangModelManagerSupport::createOverviewModel() { - return std::make_unique(); + return {}; } bool ClangModelManagerSupport::supportsOutline(const TextEditor::TextDocument *document) const diff --git a/src/plugins/clangcodemodel/clangoverviewmodel.cpp b/src/plugins/clangcodemodel/clangoverviewmodel.cpp deleted file mode 100644 index cf1d879feb8..00000000000 --- a/src/plugins/clangcodemodel/clangoverviewmodel.cpp +++ /dev/null @@ -1,251 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2018 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of Qt Creator. -** -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -****************************************************************************/ - -#include "clangoverviewmodel.h" - -#include "clangeditordocumentprocessor.h" -#include "clangutils.h" - -#include - -#include -#include -#include - -using TokenContainer = ClangBackEnd::TokenInfoContainer; -using TokenContainers = QVector; - -using namespace Utils; - -namespace ClangCodeModel { -namespace Internal { - -void addFirstItem(TokenTreeItem *root) -{ - ClangBackEnd::ExtraInfo extraInfo; - if (!root->childCount()) { - extraInfo.token = Utf8String::fromString( - QString(QT_TRANSLATE_NOOP("ClangCodeModel", ""))); - } else { - extraInfo.token = Utf8String::fromString( - QString(QT_TRANSLATE_NOOP("ClangCodeModel", "