forked from qt-creator/qt-creator
Copilot: remove unused function and member
Change-Id: I77bc6533f658dbd6c3b58f603f384e6c516974df Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -164,7 +164,6 @@ void CopilotClient::handleCompletions(const GetCompletionRequest::Response &resp
|
||||
return;
|
||||
editor->insertSuggestion(
|
||||
std::make_unique<CopilotSuggestion>(completions, editor->document()));
|
||||
m_lastCompletions[editor] = *result;
|
||||
editor->addHoverHandler(&m_hoverHandler);
|
||||
}
|
||||
}
|
||||
@@ -215,9 +214,4 @@ void CopilotClient::requestSignInConfirm(
|
||||
sendMessage(request);
|
||||
}
|
||||
|
||||
GetCompletionResponse CopilotClient::lastCompletion(TextEditor::TextEditorWidget *editor) const
|
||||
{
|
||||
return m_lastCompletions.value(editor);
|
||||
}
|
||||
|
||||
} // namespace Copilot::Internal
|
||||
|
||||
@@ -46,8 +46,6 @@ public:
|
||||
const QString &userCode,
|
||||
std::function<void(const SignInConfirmRequest::Response &response)> callback);
|
||||
|
||||
GetCompletionResponse lastCompletion(TextEditor::TextEditorWidget *editor) const;
|
||||
|
||||
private:
|
||||
QMap<TextEditor::TextEditorWidget *, GetCompletionRequest> m_runningRequests;
|
||||
struct ScheduleData
|
||||
@@ -57,7 +55,6 @@ private:
|
||||
};
|
||||
QMap<TextEditor::TextEditorWidget *, ScheduleData> m_scheduledRequests;
|
||||
CopilotHoverHandler m_hoverHandler;
|
||||
QHash<TextEditor::TextEditorWidget *, GetCompletionResponse> m_lastCompletions;
|
||||
};
|
||||
|
||||
} // namespace Copilot::Internal
|
||||
|
||||
Reference in New Issue
Block a user