remove unused CompletionScore enum

This commit is contained in:
Josh Mcguigan 2021-03-11 19:13:27 -08:00
parent 3679821eea
commit 9ee3914c61
3 changed files with 3 additions and 14 deletions

View File

@ -87,8 +87,8 @@ pub use crate::{
pub use hir::{Documentation, Semantics};
pub use ide_assists::{Assist, AssistConfig, AssistId, AssistKind};
pub use ide_completion::{
CompletionConfig, CompletionItem, CompletionItemKind, CompletionRelevance, CompletionScore,
ImportEdit, InsertTextFormat,
CompletionConfig, CompletionItem, CompletionItemKind, CompletionRelevance, ImportEdit,
InsertTextFormat,
};
pub use ide_db::{
base_db::{

View File

@ -122,14 +122,6 @@ impl fmt::Debug for CompletionItem {
}
}
#[derive(Debug, Clone, Copy, Ord, PartialOrd, Eq, PartialEq)]
pub enum CompletionScore {
/// If only type match
TypeMatch,
/// If type and name match
TypeAndNameMatch,
}
#[derive(Debug, Clone, Copy, Ord, PartialOrd, Eq, PartialEq, Default)]
pub struct CompletionRelevance {
/// This is set in cases like these:

View File

@ -23,10 +23,7 @@ use crate::{completions::Completions, context::CompletionContext, item::Completi
pub use crate::{
config::CompletionConfig,
item::{
CompletionItem, CompletionItemKind, CompletionRelevance, CompletionScore, ImportEdit,
InsertTextFormat,
},
item::{CompletionItem, CompletionItemKind, CompletionRelevance, ImportEdit, InsertTextFormat},
};
//FIXME: split the following feature into fine-grained features.