diff options
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast_util.rs | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/libsyntax/ast_util.rs b/src/libsyntax/ast_util.rs index 2c01f246c5f..926d1997465 100644 --- a/src/libsyntax/ast_util.rs +++ b/src/libsyntax/ast_util.rs @@ -702,32 +702,6 @@ pub fn struct_def_is_tuple_like(struct_def: &ast::struct_def) -> bool { struct_def.ctor_id.is_some() } -pub fn visibility_to_privacy(visibility: visibility) -> Privacy { - match visibility { - public => Public, - inherited | private => Private - } -} - -pub fn variant_visibility_to_privacy(visibility: visibility, - enclosing_is_public: bool) - -> Privacy { - if enclosing_is_public { - match visibility { - public | inherited => Public, - private => Private - } - } else { - visibility_to_privacy(visibility) - } -} - -#[deriving(Eq)] -pub enum Privacy { - Private, - Public -} - /// Returns true if the given pattern consists solely of an identifier /// and false otherwise. pub fn pat_is_ident(pat: @ast::Pat) -> bool { |
