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 | |
parent | 3679821eea94f30f2582ea7bca7569dad3ca31be (diff) |
remove unused CompletionScore enum
-rw-r--r-- | crates/ide/src/lib.rs | 4 | ||||
-rw-r--r-- | crates/ide_completion/src/item.rs | 8 | ||||
-rw-r--r-- | crates/ide_completion/src/lib.rs | 5 |
3 files changed, 3 insertions, 14 deletions
diff --git a/crates/ide/src/lib.rs b/crates/ide/src/lib.rs index 16302eb2f..0a493d2f3 100644 --- a/crates/ide/src/lib.rs +++ b/crates/ide/src/lib.rs | |||
@@ -87,8 +87,8 @@ pub use crate::{ | |||
87 | pub use hir::{Documentation, Semantics}; | 87 | pub use hir::{Documentation, Semantics}; |
88 | pub use ide_assists::{Assist, AssistConfig, AssistId, AssistKind}; | 88 | pub use ide_assists::{Assist, AssistConfig, AssistId, AssistKind}; |
89 | pub use ide_completion::{ | 89 | pub use ide_completion::{ |
90 | CompletionConfig, CompletionItem, CompletionItemKind, CompletionRelevance, CompletionScore, | 90 | CompletionConfig, CompletionItem, CompletionItemKind, CompletionRelevance, ImportEdit, |
91 | ImportEdit, InsertTextFormat, | 91 | InsertTextFormat, |
92 | }; | 92 | }; |
93 | pub use ide_db::{ | 93 | pub use ide_db::{ |
94 | base_db::{ | 94 | base_db::{ |
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. |