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;