diff options
author | Aleksey Kladov <[email protected]> | 2018-10-25 15:41:17 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-10-25 15:41:17 +0100 |
commit | 3c024d6c62d9add4051b4d8a863b402c07e8c984 (patch) | |
tree | bd186600a09df7ecc856502b3d2b2b18bc0be2ec | |
parent | e0eb33605a917d2e7289debe0c915e75286b834f (diff) |
dead code
-rw-r--r-- | crates/ra_analysis/src/db/input.rs | 22 |
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 | ||
61 | pub(crate) const WORKSPACE: SourceRootId = SourceRootId(0); | 61 | pub(crate) const WORKSPACE: SourceRootId = SourceRootId(0); |
62 | |||
63 | |||
64 | #[derive(Default, Debug, Eq)] | ||
65 | pub(crate) struct FileSet { | ||
66 | pub(crate) files: FxHashSet<FileId>, | ||
67 | pub(crate) resolver: FileResolverImp, | ||
68 | } | ||
69 | |||
70 | impl PartialEq for FileSet { | ||
71 | fn eq(&self, other: &FileSet) -> bool { | ||
72 | self.files == other.files && self.resolver == other.resolver | ||
73 | } | ||
74 | } | ||
75 | |||
76 | impl 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 | |||