summaryrefslogtreecommitdiff
path: root/TAO/tao/Principal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Principal.cpp')
-rw-r--r--TAO/tao/Principal.cpp63
1 files changed, 0 insertions, 63 deletions
diff --git a/TAO/tao/Principal.cpp b/TAO/tao/Principal.cpp
deleted file mode 100644
index 1f9331fd41a..00000000000
--- a/TAO/tao/Principal.cpp
+++ /dev/null
@@ -1,63 +0,0 @@
-// $Id$
-
-// Copyright 1994-1995 by Sun Microsystems Inc.
-// All Rights Reserved
-// ORB: Principal identifier pseudo-objref
-
-#include "tao/Principal.h"
-#include "tao/CDR.h"
-
-#if !defined (__ACE_INLINE__)
-#include "tao/Principal.i"
-#endif /* __ACE_INLINE__ */
-
-ACE_RCSID(tao, Principal, "$Id$")
-
-CORBA_Principal::CORBA_Principal (void)
-{
-}
-
-CORBA_Principal::~CORBA_Principal (void)
-{
-}
-
-void
-CORBA::release (CORBA::Principal_ptr principal)
-{
- if (principal)
- principal->_decr_refcnt ();
-}
-
-CORBA::Boolean
-operator<< (TAO_OutputCDR& cdr, CORBA_Principal* x)
-{
- if (x != 0)
- {
- CORBA::ULong length = x->id.length ();
- cdr.write_long (length);
- cdr.write_octet_array (x->id.get_buffer (), length);
- }
- else
- {
- cdr.write_ulong (0);
- }
- return cdr.good_bit ();
-}
-
-CORBA::Boolean
-operator>> (TAO_InputCDR& cdr, CORBA_Principal*& x)
-{
- CORBA::ULong length;
- cdr.read_ulong (length);
- if (length == 0 || !cdr.good_bit ())
- {
- x = 0;
- }
- else
- {
- ACE_NEW_RETURN (x, CORBA::Principal, 0);
- x->id.length (length);
- cdr.read_octet_array (x->id.get_buffer (), length);
- }
- return cdr.good_bit ();
-}