Copilot: remove unused function and member

Change-Id: I77bc6533f658dbd6c3b58f603f384e6c516974df
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
David Schulz
2023-05-10 14:33:20 +02:00
parent 17ca266b5f
commit 0b8a0f8f59
2 changed files with 0 additions and 9 deletions

View File

@@ -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

View File

@@ -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