Remove `ast::Visibility::inherit_from` (it is unused and has obsolete semantics)

This commit is contained in:
Jeffrey Seyfried 2016-04-02 20:21:02 +00:00
parent 1af79cf34e
commit 74240b22d9
1 changed files with 0 additions and 9 deletions

View File

@ -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,