summaryrefslogtreecommitdiff
path: root/support/texlab/crates/texlab/src/features/link/include.rs
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/crates/texlab/src/features/link/include.rs')
-rw-r--r--support/texlab/crates/texlab/src/features/link/include.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/support/texlab/crates/texlab/src/features/link/include.rs b/support/texlab/crates/texlab/src/features/link/include.rs
deleted file mode 100644
index eef47514af..0000000000
--- a/support/texlab/crates/texlab/src/features/link/include.rs
+++ /dev/null
@@ -1,22 +0,0 @@
-use super::LinkBuilder;
-
-pub(super) fn find_links(builder: &mut LinkBuilder) -> Option<()> {
- let parent = *builder
- .workspace
- .parents(builder.document)
- .iter()
- .next()
- .unwrap_or(&builder.document);
-
- let graph = base_db::graph::Graph::new(builder.workspace, parent);
-
- for edge in &graph.edges {
- if edge.source == builder.document {
- if let Some(weight) = &edge.weight {
- builder.push(weight.link.path.range, edge.target);
- }
- }
- }
-
- Some(())
-}