From 8ce0098ca2d6d312eadb269444de620c7609a785 Mon Sep 17 00:00:00 2001 From: Daniel Parker Date: Wed, 22 Jan 2025 15:05:54 -0500 Subject: [PATCH] csv_encoder --- include/jsoncons_ext/csv/csv_encoder.hpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/jsoncons_ext/csv/csv_encoder.hpp b/include/jsoncons_ext/csv/csv_encoder.hpp index 85606a879..99bba3eee 100644 --- a/include/jsoncons_ext/csv/csv_encoder.hpp +++ b/include/jsoncons_ext/csv/csv_encoder.hpp @@ -280,7 +280,6 @@ class basic_csv_encoder final : public basic_json_visitor 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: @@ -492,10 +491,6 @@ class basic_csv_encoder final : public basic_json_visitor else { append_array_path_component(); - if (stack_[0].count_ == 0) - { - column_path_value_map_[stack_.back().column_path_] = std::basic_string(); - } value_buffer_.clear(); stack_.emplace_back(stack_item_kind::multivalued_field); }