From 354ad29493dbb258c11190abd7632af95c538e16 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Wed, 16 Jun 2021 15:08:44 +0200 Subject: Filter out non-type completions in the respective completions modules instead --- crates/hir/src/lib.rs | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'crates/hir') diff --git a/crates/hir/src/lib.rs b/crates/hir/src/lib.rs index 5bc0b2338..b7eabaabb 100644 --- a/crates/hir/src/lib.rs +++ b/crates/hir/src/lib.rs @@ -2688,18 +2688,6 @@ impl ScopeDef { items } - - pub fn is_value_def(&self) -> bool { - matches!( - self, - ScopeDef::ModuleDef(ModuleDef::Function(_)) - | ScopeDef::ModuleDef(ModuleDef::Variant(_)) - | ScopeDef::ModuleDef(ModuleDef::Const(_)) - | ScopeDef::ModuleDef(ModuleDef::Static(_)) - | ScopeDef::GenericParam(GenericParam::ConstParam(_)) - | ScopeDef::Local(_) - ) - } } impl From for ScopeDef { -- cgit v1.2.3