From 6cdb7c66e1874394419dc71b82d27d2b250b445b Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Fri, 18 Aug 2017 10:26:05 -0700 Subject: [PATCH] Remove unused function --- src/command_line.cc | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/command_line.cc b/src/command_line.cc index 8e044cbf..f4519337 100644 --- a/src/command_line.cc +++ b/src/command_line.cc @@ -200,16 +200,6 @@ bool FindFileOrFail(QueryDatabase* db, lsRequestId id, const std::string& absolu return false; } -QueryFile* FindFile(QueryDatabase* db, const std::string& absolute_path) { - auto it = db->usr_to_file.find(LowerPathIfCaseInsensitive(absolute_path)); - if (it != db->usr_to_file.end()) { - optional& file = db->files[it->second.id]; - if (file) - return &file.value(); - } - return nullptr; -} - void PublishInactiveLines(WorkingFile* working_file, const std::vector& inactive) { Out_CquerySetInactiveRegion out;