From 158729ffa4007c52c712a6818e31422f97016e1b Mon Sep 17 00:00:00 2001 From: artemp Date: Fri, 23 Oct 2015 14:24:08 +0100 Subject: [PATCH] remove unreachable code block --- plugins/input/csv/csv_datasource.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/plugins/input/csv/csv_datasource.cpp b/plugins/input/csv/csv_datasource.cpp index 61cddfc4b..9aa4ff653 100644 --- a/plugins/input/csv/csv_datasource.cpp +++ b/plugins/input/csv/csv_datasource.cpp @@ -356,18 +356,6 @@ void csv_datasource::parse_csv(T & stream) for (std::size_t i = 0; i < num_headers; ++i) { std::string const& header = headers_.at(i); - if (beg == end) // there are more headers than column values for this row - { - // add an empty string here to represent a missing value - // not using null type here since nulls are not a csv thing - if (feature_count == 1) - { - desc_.add_descriptor(mapnik::attribute_descriptor(header, mapnik::String)); - } - // continue here instead of break so that all missing values are - // encoded consistenly as empty strings - continue; - } std::string value = mapnik::util::trim_copy(*beg++); int value_length = value.length(); if (locator_.index == i && (locator_.type == detail::geometry_column_locator::WKT