summaryrefslogtreecommitdiff
path: root/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp')
-rw-r--r--TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp36
1 files changed, 0 insertions, 36 deletions
diff --git a/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp b/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp
index 07d0f42def6..a4f1960780d 100644
--- a/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp
+++ b/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp
@@ -349,14 +349,8 @@ TAO_TypeCodeFactory_i::create_enum_tc (
cdr << id;
- this->string_pad (cdr,
- ACE_OS::strlen (id) + 1);
-
cdr << name;
- this->string_pad (cdr,
- ACE_OS::strlen (name) + 1);
-
CORBA::ULong len = members.length ();
cdr << len;
@@ -377,9 +371,6 @@ TAO_TypeCodeFactory_i::create_enum_tc (
}
cdr << members[index].in ();
-
- this->string_pad (cdr,
- ACE_OS::strlen (members[index].in ()) + 1);
}
ACE_Message_Block consolidated_block;
@@ -443,14 +434,8 @@ TAO_TypeCodeFactory_i::create_alias_tc (
cdr << id;
- this->string_pad (cdr,
- ACE_OS::strlen (id) + 1);
-
cdr << name;
- this->string_pad (cdr,
- ACE_OS::strlen (name) + 1);
-
cdr << original_type;
ACE_Message_Block consolidated_block;
@@ -1094,14 +1079,8 @@ TAO_TypeCodeFactory_i::struct_except_tc_common (
cdr << id;
- this->string_pad (cdr,
- ACE_OS::strlen (id) + 1);
-
cdr << name;
- this->string_pad (cdr,
- ACE_OS::strlen (name) + 1);
-
// Number of members..
CORBA::ULong len = members.length ();
@@ -1150,9 +1129,6 @@ TAO_TypeCodeFactory_i::struct_except_tc_common (
cdr << member_name;
- this->string_pad (cdr,
- ACE_OS::strlen (member_name) + 1);
-
cdr << tc_holder;
}
@@ -1421,18 +1397,6 @@ TAO_TypeCodeFactory_i::valid_disc_type (CORBA::TypeCode_ptr tc
return 0;
}
-void
-TAO_TypeCodeFactory_i::string_pad (TAO_OutputCDR &cdr,
- CORBA::ULong slen)
-{
- CORBA::ULong padlen = (4 - (slen % 4)) % 4;
-
- for (CORBA::ULong i = 0; i < padlen; ++i)
- {
- cdr.write_char ('\0');
- }
-}
-
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class ACE_Hash_Map_Entry<ACE_CString, int>;