Commit aa52cd83 authored by hjk's avatar hjk Committed by Erik Verbruggen

CppEditor: Remove unused Project parameter

Change-Id: I3bfa201352127b34d46fe5bb4b18fab12aeafa3a
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
parent a4ab4958
......@@ -203,10 +203,9 @@ IAssistProcessor *ClangCompletionAssistProvider::createProcessor() const
}
IAssistInterface *ClangCompletionAssistProvider::createAssistInterface(
ProjectExplorer::Project *project, const QString &filePath,
const QString &filePath,
QTextDocument *document, bool isObjCEnabled, int position, AssistReason reason) const
{
Q_UNUSED(project);
Q_UNUSED(isObjCEnabled);
CppModelManagerInterface *modelManager = CppModelManagerInterface::instance();
......
......@@ -44,7 +44,6 @@
#include <QStringList>
#include <QTextCursor>
#include <QCoreApplication>
namespace ClangCodeModel {
......@@ -58,7 +57,7 @@ public:
virtual TextEditor::IAssistProcessor *createProcessor() const;
virtual TextEditor::IAssistInterface *createAssistInterface(
ProjectExplorer::Project *project, const QString &filePath,
const QString &filePath,
QTextDocument *document, bool isObjCEnabled, int position,
TextEditor::AssistReason reason) const;
......
......@@ -613,7 +613,6 @@ IAssistInterface *CppEditorWidget::createAssistInterface(AssistKind kind, Assist
if (kind == Completion) {
if (CppCompletionAssistProvider *cap = cppEditorDocument()->completionAssistProvider()) {
return cap->createAssistInterface(
ProjectExplorer::ProjectExplorerPlugin::currentProject(),
textDocument()->filePath(),
document(),
cppEditorDocument()->isObjCEnabled(),
......
......@@ -418,10 +418,9 @@ IAssistProcessor *InternalCompletionAssistProvider::createProcessor() const
}
IAssistInterface *InternalCompletionAssistProvider::createAssistInterface(
ProjectExplorer::Project *project, const QString &filePath, QTextDocument *document,
const QString &filePath, QTextDocument *document,
bool isObjCEnabled, int position, AssistReason reason) const
{
Q_UNUSED(project);
QTC_ASSERT(document, return 0);
CppModelManagerInterface *modelManager = CppModelManagerInterface::instance();
......
......@@ -92,7 +92,7 @@ class InternalCompletionAssistProvider : public CppCompletionAssistProvider
public:
TextEditor::IAssistProcessor *createProcessor() const QTC_OVERRIDE;
TextEditor::IAssistInterface *createAssistInterface(ProjectExplorer::Project *project,
TextEditor::IAssistInterface *createAssistInterface(
const QString &filePath,
QTextDocument *document,
bool isObjCEnabled,
......
......@@ -41,8 +41,6 @@ QT_BEGIN_NAMESPACE
class QTextDocument;
QT_END_NAMESPACE
namespace ProjectExplorer { class Project; }
namespace TextEditor {
class BaseTextEditor;
class IAssistInterface;
......@@ -61,7 +59,7 @@ public:
bool isContinuationChar(const QChar &c) const QTC_OVERRIDE;
virtual TextEditor::IAssistInterface *createAssistInterface(
ProjectExplorer::Project *project, const QString &filePath,
const QString &filePath,
QTextDocument *document, bool isObjCEnabled, int position,
TextEditor::AssistReason reason) const = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment