diff options
Diffstat (limited to 'crates/ra_hir/src/code_model.rs')
-rw-r--r-- | crates/ra_hir/src/code_model.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs index 0e987240a..52ad4e5d1 100644 --- a/crates/ra_hir/src/code_model.rs +++ b/crates/ra_hir/src/code_model.rs | |||
@@ -534,14 +534,6 @@ impl VariantDef { | |||
534 | } | 534 | } |
535 | } | 535 | } |
536 | 536 | ||
537 | pub(crate) fn field(self, db: &impl HirDatabase, name: &Name) -> Option<StructField> { | ||
538 | match self { | ||
539 | VariantDef::Struct(it) => it.field(db, name), | ||
540 | VariantDef::Union(it) => it.field(db, name), | ||
541 | VariantDef::EnumVariant(it) => it.field(db, name), | ||
542 | } | ||
543 | } | ||
544 | |||
545 | pub fn module(self, db: &impl HirDatabase) -> Module { | 537 | pub fn module(self, db: &impl HirDatabase) -> Module { |
546 | match self { | 538 | match self { |
547 | VariantDef::Struct(it) => it.module(db), | 539 | VariantDef::Struct(it) => it.module(db), |