From fc31ddd303e05b658cc46f44b6c7043a653cfa2c Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 15 Oct 2018 22:59:18 +0300 Subject: Simplify --- crates/ra_analysis/src/imp.rs | 12 ------------ crates/ra_analysis/src/lib.rs | 1 - 2 files changed, 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 @@ use std::{ sync::{ Arc, - atomic::{AtomicBool, Ordering::SeqCst}, }, hash::{Hash, Hasher}, fmt, @@ -89,7 +88,6 @@ impl AnalysisHostImpl { } pub fn analysis(&self) -> AnalysisImpl { AnalysisImpl { - needs_reindex: AtomicBool::new(false), data: self.data.clone(), } } @@ -119,7 +117,6 @@ impl AnalysisHostImpl { } pub(crate) struct AnalysisImpl { - needs_reindex: AtomicBool, data: WorldData, } @@ -129,15 +126,6 @@ impl fmt::Debug for AnalysisImpl { } } -impl Clone for AnalysisImpl { - fn clone(&self) -> AnalysisImpl { - AnalysisImpl { - needs_reindex: AtomicBool::new(self.needs_reindex.load(SeqCst)), - data: self.data.clone(), - } - } -} - impl AnalysisImpl { fn root(&self, file_id: FileId) -> &SourceRoot { 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; mod job; mod roots; mod db; -// mod queries; mod descriptors; use std::{ -- cgit v1.2.3