aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-10-15 20:59:18 +0100
committerAleksey Kladov <[email protected]>2018-10-15 20:59:18 +0100
commitfc31ddd303e05b658cc46f44b6c7043a653cfa2c (patch)
tree077a4034a783d61cc8a1059b6d96f5c7f9a059b1 /crates
parent85ff328d31f4ccdbb797a3040f967963bfaa5fff (diff)
Simplify
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_analysis/src/imp.rs12
-rw-r--r--crates/ra_analysis/src/lib.rs1
2 files changed, 0 insertions, 13 deletions
diff --git a/crates/ra_analysis/src/imp.rs b/crates/ra_analysis/src/imp.rs
index d07d797d5..5efcaeca0 100644
--- a/crates/ra_analysis/src/imp.rs
+++ b/crates/ra_analysis/src/imp.rs
@@ -1,7 +1,6 @@
1use std::{ 1use std::{
2 sync::{ 2 sync::{
3 Arc, 3 Arc,
4 atomic::{AtomicBool, Ordering::SeqCst},
5 }, 4 },
6 hash::{Hash, Hasher}, 5 hash::{Hash, Hasher},
7 fmt, 6 fmt,
@@ -89,7 +88,6 @@ impl AnalysisHostImpl {
89 } 88 }
90 pub fn analysis(&self) -> AnalysisImpl { 89 pub fn analysis(&self) -> AnalysisImpl {
91 AnalysisImpl { 90 AnalysisImpl {
92 needs_reindex: AtomicBool::new(false),
93 data: self.data.clone(), 91 data: self.data.clone(),
94 } 92 }
95 } 93 }
@@ -119,7 +117,6 @@ impl AnalysisHostImpl {
119} 117}
120 118
121pub(crate) struct AnalysisImpl { 119pub(crate) struct AnalysisImpl {
122 needs_reindex: AtomicBool,
123 data: WorldData, 120 data: WorldData,
124} 121}
125 122
@@ -129,15 +126,6 @@ impl fmt::Debug for AnalysisImpl {
129 } 126 }
130} 127}
131 128
132impl Clone for AnalysisImpl {
133 fn clone(&self) -> AnalysisImpl {
134 AnalysisImpl {
135 needs_reindex: AtomicBool::new(self.needs_reindex.load(SeqCst)),
136 data: self.data.clone(),
137 }
138 }
139}
140
141impl AnalysisImpl { 129impl AnalysisImpl {
142 fn root(&self, file_id: FileId) -> &SourceRoot { 130 fn root(&self, file_id: FileId) -> &SourceRoot {
143 if self.data.root.contains(file_id) { 131 if self.data.root.contains(file_id) {
diff --git a/crates/ra_analysis/src/lib.rs b/crates/ra_analysis/src/lib.rs
index 543a8f6da..d8b355a81 100644
--- a/crates/ra_analysis/src/lib.rs
+++ b/crates/ra_analysis/src/lib.rs
@@ -19,7 +19,6 @@ mod imp;
19mod job; 19mod job;
20mod roots; 20mod roots;
21mod db; 21mod db;
22// mod queries;
23mod descriptors; 22mod descriptors;
24 23
25use std::{ 24use std::{