File tree Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -689,12 +689,6 @@ class Cdr
689
689
Cdr& serialize (
690
690
const std::string& string_t )
691
691
{
692
- // An empty string is serialized as a 0 length string.
693
- if (string_t .empty ())
694
- {
695
- return serialize (static_cast <uint32_t >(0 ));
696
- }
697
-
698
692
// Check there are no null characters in the string.
699
693
const char * c_str = string_t .c_str ();
700
694
const auto str_len = strlen (c_str);
Original file line number Diff line number Diff line change @@ -891,12 +891,6 @@ class Cdr_DllAPI FastCdr
891
891
FastCdr& serialize (
892
892
const std::string& string_t )
893
893
{
894
- // An empty string is serialized as a 0 length string.
895
- if (string_t .empty ())
896
- {
897
- return serialize (static_cast <uint32_t >(0 ));
898
- }
899
-
900
894
// Check there are no null characters in the string.
901
895
const char * c_str = string_t .c_str ();
902
896
const auto str_len = strlen (c_str);
You can’t perform that action at this time.
0 commit comments