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 611bc5f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 196 deletions.
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 611bc5f

Please sign in to comment.