forked from qt-creator/qt-creator
LanguageClient: remove unused function
Change-Id: If931e1e6d2e28eddb599faefda2590324ff0801b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -330,15 +330,6 @@ void Client::sendContent(const IContent &content)
|
|||||||
m_clientInterface->sendMessage(message);
|
m_clientInterface->sendMessage(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Client::sendContent(const DocumentUri &uri, const IContent &content)
|
|
||||||
{
|
|
||||||
if (!Utils::anyOf(m_openedDocument.keys(), [uri](TextEditor::TextDocument *documnent) {
|
|
||||||
return uri.toFilePath() == documnent->filePath();
|
|
||||||
})) {
|
|
||||||
sendContent(content);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void Client::cancelRequest(const MessageId &id)
|
void Client::cancelRequest(const MessageId &id)
|
||||||
{
|
{
|
||||||
m_responseHandlers.remove(id);
|
m_responseHandlers.remove(id);
|
||||||
|
|||||||
@@ -134,8 +134,6 @@ public:
|
|||||||
void projectFileListChanged();
|
void projectFileListChanged();
|
||||||
|
|
||||||
void sendContent(const LanguageServerProtocol::IContent &content);
|
void sendContent(const LanguageServerProtocol::IContent &content);
|
||||||
void sendContent(const LanguageServerProtocol::DocumentUri &uri,
|
|
||||||
const LanguageServerProtocol::IContent &content);
|
|
||||||
void cancelRequest(const LanguageServerProtocol::MessageId &id);
|
void cancelRequest(const LanguageServerProtocol::MessageId &id);
|
||||||
|
|
||||||
void setSupportedLanguage(const LanguageFilter &filter);
|
void setSupportedLanguage(const LanguageFilter &filter);
|
||||||
|
|||||||
Reference in New Issue
Block a user