diff options
Diffstat (limited to 'TAO/TAO_IDL/ast/ast_field.cpp')
-rw-r--r-- | TAO/TAO_IDL/ast/ast_field.cpp | 38 |
1 files changed, 11 insertions, 27 deletions
diff --git a/TAO/TAO_IDL/ast/ast_field.cpp b/TAO/TAO_IDL/ast/ast_field.cpp index 05cc77d5def..1715d29680f 100644 --- a/TAO/TAO_IDL/ast/ast_field.cpp +++ b/TAO/TAO_IDL/ast/ast_field.cpp @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -78,8 +78,8 @@ trademarks or registered trademarks of Sun Microsystems, Inc. * nodes and AST_UnionBranch nodes. */ -#include "idl.h" -#include "idl_extern.h" +#include "idl.h" +#include "idl_extern.h" ACE_RCSID(ast, ast_field, "$Id$") @@ -91,17 +91,16 @@ ACE_RCSID(ast, ast_field, "$Id$") * Default constructor */ AST_Field::AST_Field() - : pd_field_type(NULL), pd_visibility (vis_NA) + : pd_field_type(NULL) { } /* * To be used when constructing an AST_Field node */ -AST_Field::AST_Field(AST_Type *ft, UTL_ScopedName *n, UTL_StrList *p, - Visibility vis) - : AST_Decl(AST_Decl::NT_field, n, p), - pd_field_type(ft), pd_visibility (vis) +AST_Field::AST_Field(AST_Type *ft, UTL_ScopedName *n, UTL_StrList *p) + : AST_Decl(AST_Decl::NT_field, n, p), + pd_field_type(ft) { } @@ -109,9 +108,9 @@ AST_Field::AST_Field(AST_Type *ft, UTL_ScopedName *n, UTL_StrList *p, * To be used when constructing a node of a subclass of AST_Field */ AST_Field::AST_Field(AST_Decl::NodeType nt, AST_Type *ft, - UTL_ScopedName *n, UTL_StrList *p, Visibility vis) - : AST_Decl(nt, n, p), - pd_field_type(ft), pd_visibility (vis) + UTL_ScopedName *n, UTL_StrList *p) + : AST_Decl(nt, n, p), + pd_field_type(ft) { } @@ -134,15 +133,6 @@ AST_Field::AST_Field(AST_Decl::NodeType nt, AST_Type *ft, void AST_Field::dump(ostream &o) { - switch (visibility()) - { - case vis_PRIVATE: - o << "private "; - break; - case vis_PUBLIC: - o << "public "; - break; - } pd_field_type->local_name()->dump(o); o << " "; local_name()->dump(o); @@ -158,12 +148,6 @@ AST_Field::field_type() return pd_field_type; } -AST_Field::Visibility -AST_Field::visibility() -{ - return pd_visibility; -} - /* * Narrowing methods */ |