diff options
Diffstat (limited to 'crates/ra_analysis/src')
-rw-r--r-- | crates/ra_analysis/src/imp.rs | 12 | ||||
-rw-r--r-- | crates/ra_analysis/src/lib.rs | 1 |
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 @@ | |||
1 | use std::{ | 1 | use 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 | ||
121 | pub(crate) struct AnalysisImpl { | 119 | pub(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 | ||
132 | impl 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 | |||
141 | impl AnalysisImpl { | 129 | impl 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; | |||
19 | mod job; | 19 | mod job; |
20 | mod roots; | 20 | mod roots; |
21 | mod db; | 21 | mod db; |
22 | // mod queries; | ||
23 | mod descriptors; | 22 | mod descriptors; |
24 | 23 | ||
25 | use std::{ | 24 | use std::{ |