Skip to content

Commit 9ee3914

Browse files
committed
remove unused CompletionScore enum
1 parent 3679821 commit 9ee3914

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

crates/ide/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ pub use crate::{
8787
pub use hir::{Documentation, Semantics};
8888
pub use ide_assists::{Assist, AssistConfig, AssistId, AssistKind};
8989
pub use ide_completion::{
90-
CompletionConfig, CompletionItem, CompletionItemKind, CompletionRelevance, CompletionScore,
91-
ImportEdit, InsertTextFormat,
90+
CompletionConfig, CompletionItem, CompletionItemKind, CompletionRelevance, ImportEdit,
91+
InsertTextFormat,
9292
};
9393
pub use ide_db::{
9494
base_db::{

crates/ide_completion/src/item.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,6 @@ impl fmt::Debug for CompletionItem {
122122
}
123123
}
124124

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-
133125
#[derive(Debug, Clone, Copy, Ord, PartialOrd, Eq, PartialEq, Default)]
134126
pub struct CompletionRelevance {
135127
/// This is set in cases like these:

crates/ide_completion/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ use crate::{completions::Completions, context::CompletionContext, item::Completi
2323

2424
pub use crate::{
2525
config::CompletionConfig,
26-
item::{
27-
CompletionItem, CompletionItemKind, CompletionRelevance, CompletionScore, ImportEdit,
28-
InsertTextFormat,
29-
},
26+
item::{CompletionItem, CompletionItemKind, CompletionRelevance, ImportEdit, InsertTextFormat},
3027
};
3128

3229
//FIXME: split the following feature into fine-grained features.

0 commit comments

Comments
 (0)