From 74240b22d92bbbdf4afac8cf14f81fd337b97a46 Mon Sep 17 00:00:00 2001 From: Jeffrey Seyfried Date: Sat, 2 Apr 2016 20:21:02 +0000 Subject: [PATCH] Remove `ast::Visibility::inherit_from` (it is unused and has obsolete semantics) --- src/libsyntax/ast.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index e096aa99024..e043478f5a8 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -1874,15 +1874,6 @@ pub enum Visibility { Inherited, } -impl Visibility { - pub fn inherit_from(&self, parent_visibility: Visibility) -> Visibility { - match *self { - Visibility::Inherited => parent_visibility, - Visibility::Public => *self - } - } -} - #[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)] pub struct StructField_ { pub kind: StructFieldKind,