Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Commit

Permalink
Drop hardcoded standard includes
Browse files Browse the repository at this point in the history
  • Loading branch information
bstaletic committed Apr 23, 2018
1 parent 9ada854 commit 1240786
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 197 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ target_sources(cquery PRIVATE
src/recorder.cc
src/semantic_highlight_symbol_cache.cc
src/serializer.cc
src/standard_includes.cc
src/task.cc
src/test.cc
src/third_party_impl.cc
Expand Down
10 changes: 0 additions & 10 deletions src/include_complete.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "match.h"
#include "platform.h"
#include "project.h"
#include "standard_includes.h"
#include "timer.h"
#include "work_thread.h"

Expand Down Expand Up @@ -119,7 +118,6 @@ void IncludeComplete::Rescan() {
WorkThread::StartThread("scan_includes", [this]() {
Timer timer;

InsertStlIncludes();
InsertIncludesFromDirectory(g_config->projectRoot,
false /*use_angle_brackets*/);
for (const Directory& dir : project_->quote_include_directories)
Expand Down Expand Up @@ -206,14 +204,6 @@ void IncludeComplete::InsertIncludesFromDirectory(std::string directory0,
std::move(result.completion_item));
}

void IncludeComplete::InsertStlIncludes() {
std::lock_guard<std::mutex> lock(completion_items_mutex);
for (const char* stl_header : kStandardLibraryIncludes) {
completion_items.push_back(BuildCompletionItem(
stl_header, true /*use_angle_brackets*/, true /*is_stl*/));
}
}

optional<lsCompletionItem> IncludeComplete::FindCompletionItemForAbsolutePath(
const std::string& absolute_path) {
std::lock_guard<std::mutex> lock(completion_items_mutex);
Expand Down
182 changes: 0 additions & 182 deletions src/standard_includes.cc

This file was deleted.

4 changes: 0 additions & 4 deletions src/standard_includes.h

This file was deleted.

0 comments on commit 1240786

Please sign in to comment.