diff options
author | Aleksey Kladov <[email protected]> | 2018-10-15 20:59:18 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-10-15 20:59:18 +0100 |
commit | fc31ddd303e05b658cc46f44b6c7043a653cfa2c (patch) | |
tree | 077a4034a783d61cc8a1059b6d96f5c7f9a059b1 /crates/ra_analysis/src/imp.rs | |
parent | 85ff328d31f4ccdbb797a3040f967963bfaa5fff (diff) |
Simplify
Diffstat (limited to 'crates/ra_analysis/src/imp.rs')
-rw-r--r-- | crates/ra_analysis/src/imp.rs | 12 |
1 files changed, 0 insertions, 12 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) { |