Remove unneeded code

This commit is contained in:
Rian Neogi 2018-03-15 14:50:34 +05:30 committed by Jacob Dufault
parent 26584cac81
commit bcdb8690f0

View File

@ -350,20 +350,6 @@ struct TextDocumentCompletionHandler : MessageHandler {
QueueManager::WriteStdout(IpcId::TextDocumentCompletion, out);
} else {
// If existing completion is empty, dont return clang-based completion
// results Only do this when trigger is not manual or context doesn't
// exist (for Atom support).
if (existing_completion.empty() && is_global_completion &&
(!request->params.context || request->params.context->triggerKind ==
lsCompletionTriggerKind::TriggerCharacter)) {
LOG_S(INFO) << "Existing completion is empty, no completion results "
"will be returned";
Out_TextDocumentComplete out;
out.id = request->id;
QueueManager::WriteStdout(IpcId::TextDocumentCompletion, out);
return;
}
ClangCompleteManager::OnComplete callback = std::bind(
[this, is_global_completion, existing_completion, request](
const std::vector<lsCompletionItem>& results,