diff options
author | Fedor Sakharov <[email protected]> | 2020-05-07 14:30:20 +0100 |
---|---|---|
committer | Fedor Sakharov <[email protected]> | 2020-05-07 14:31:51 +0100 |
commit | 210f0cbd27b0621c47e15c74bbb16ab47a642999 (patch) | |
tree | 29254a5781765ac930e413bfee99f8d6abca1148 /crates/ra_hir/src | |
parent | bd9f1f7eb78843ddd91d259a04e988b0681a5db4 (diff) |
Remove HasVisibility implementation
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r-- | crates/ra_hir/src/code_model.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs index 7eba0b233..5f480c304 100644 --- a/crates/ra_hir/src/code_model.rs +++ b/crates/ra_hir/src/code_model.rs | |||
@@ -474,13 +474,6 @@ impl EnumVariant { | |||
474 | } | 474 | } |
475 | } | 475 | } |
476 | 476 | ||
477 | impl HasVisibility for EnumVariant { | ||
478 | fn visibility(&self, db: &dyn HirDatabase) -> Visibility { | ||
479 | let visibility = &db.enum_data(self.parent.id).visibility; | ||
480 | visibility.resolve(db.upcast(), &self.parent.id.resolver(db.upcast())) | ||
481 | } | ||
482 | } | ||
483 | |||
484 | /// A Data Type | 477 | /// A Data Type |
485 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] | 478 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] |
486 | pub enum Adt { | 479 | pub enum Adt { |