Skip to content

Commit

Permalink
csv_encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
danielaparker committed Jan 22, 2025
1 parent 6fc1a60 commit 8ce0098
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions include/jsoncons_ext/csv/csv_encoder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ class basic_csv_encoder final : public basic_json_visitor<CharT>
switch (stack_.back().item_kind_)
{
case stack_item_kind::flat_row_mapping:
column_index_ = 0;
stack_.emplace_back(stack_item_kind::flat_object);
break;
case stack_item_kind::row_mapping:
Expand Down Expand Up @@ -492,10 +491,6 @@ class basic_csv_encoder final : public basic_json_visitor<CharT>
else
{
append_array_path_component();
if (stack_[0].count_ == 0)
{
column_path_value_map_[stack_.back().column_path_] = std::basic_string<CharT>();
}
value_buffer_.clear();
stack_.emplace_back(stack_item_kind::multivalued_field);
}
Expand Down

0 comments on commit 8ce0098

Please sign in to comment.