diff options
author | Josh Mcguigan <[email protected]> | 2021-03-12 03:13:27 +0000 |
---|---|---|
committer | Josh Mcguigan <[email protected]> | 2021-03-12 14:16:04 +0000 |
commit | 9ee3914c61f0476d28d3f74f046f487900e2a6fb (patch) | |
tree | 26df8d1ebfe9948eba74e5b47a1721995d2b7c9c /crates/ide_completion/src | |
parent | 3679821eea94f30f2582ea7bca7569dad3ca31be (diff) |
remove unused CompletionScore enum
Diffstat (limited to 'crates/ide_completion/src')
-rw-r--r-- | crates/ide_completion/src/item.rs | 8 | ||||
-rw-r--r-- | crates/ide_completion/src/lib.rs | 5 |
2 files changed, 1 insertions, 12 deletions
diff --git a/crates/ide_completion/src/item.rs b/crates/ide_completion/src/item.rs index 9a4dc915c..30317842d 100644 --- a/crates/ide_completion/src/item.rs +++ b/crates/ide_completion/src/item.rs | |||
@@ -122,14 +122,6 @@ impl fmt::Debug for CompletionItem { | |||
122 | } | 122 | } |
123 | } | 123 | } |
124 | 124 | ||
125 | #[derive(Debug, Clone, Copy, Ord, PartialOrd, Eq, PartialEq)] | ||
126 | pub enum CompletionScore { | ||
127 | /// If only type match | ||
128 | TypeMatch, | ||
129 | /// If type and name match | ||
130 | TypeAndNameMatch, | ||
131 | } | ||
132 | |||
133 | #[derive(Debug, Clone, Copy, Ord, PartialOrd, Eq, PartialEq, Default)] | 125 | #[derive(Debug, Clone, Copy, Ord, PartialOrd, Eq, PartialEq, Default)] |
134 | pub struct CompletionRelevance { | 126 | pub struct CompletionRelevance { |
135 | /// This is set in cases like these: | 127 | /// This is set in cases like these: |
diff --git a/crates/ide_completion/src/lib.rs b/crates/ide_completion/src/lib.rs index 21e489755..263554ecf 100644 --- a/crates/ide_completion/src/lib.rs +++ b/crates/ide_completion/src/lib.rs | |||
@@ -23,10 +23,7 @@ use crate::{completions::Completions, context::CompletionContext, item::Completi | |||
23 | 23 | ||
24 | pub use crate::{ | 24 | pub use crate::{ |
25 | config::CompletionConfig, | 25 | config::CompletionConfig, |
26 | item::{ | 26 | item::{CompletionItem, CompletionItemKind, CompletionRelevance, ImportEdit, InsertTextFormat}, |
27 | CompletionItem, CompletionItemKind, CompletionRelevance, CompletionScore, ImportEdit, | ||
28 | InsertTextFormat, | ||
29 | }, | ||
30 | }; | 27 | }; |
31 | 28 | ||
32 | //FIXME: split the following feature into fine-grained features. | 29 | //FIXME: split the following feature into fine-grained features. |