aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-10-25 15:41:17 +0100
committerAleksey Kladov <[email protected]>2018-10-25 15:41:17 +0100
commit3c024d6c62d9add4051b4d8a863b402c07e8c984 (patch)
treebd186600a09df7ecc856502b3d2b2b18bc0be2ec /crates/ra_analysis
parente0eb33605a917d2e7289debe0c915e75286b834f (diff)
dead code
Diffstat (limited to 'crates/ra_analysis')
-rw-r--r--crates/ra_analysis/src/db/input.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/crates/ra_analysis/src/db/input.rs b/crates/ra_analysis/src/db/input.rs
index 957d082f9..25b9935cb 100644
--- a/crates/ra_analysis/src/db/input.rs
+++ b/crates/ra_analysis/src/db/input.rs
@@ -59,25 +59,3 @@ impl Hash for SourceRoot {
59} 59}
60 60
61pub(crate) const WORKSPACE: SourceRootId = SourceRootId(0); 61pub(crate) const WORKSPACE: SourceRootId = SourceRootId(0);
62
63
64#[derive(Default, Debug, Eq)]
65pub(crate) struct FileSet {
66 pub(crate) files: FxHashSet<FileId>,
67 pub(crate) resolver: FileResolverImp,
68}
69
70impl PartialEq for FileSet {
71 fn eq(&self, other: &FileSet) -> bool {
72 self.files == other.files && self.resolver == other.resolver
73 }
74}
75
76impl Hash for FileSet {
77 fn hash<H: Hasher>(&self, hasher: &mut H) {
78 let mut files = self.files.iter().cloned().collect::<Vec<_>>();
79 files.sort();
80 files.hash(hasher);
81 }
82}
83