From 74bd90701e212b6799ccdda2c0afcecf4c484430 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Tue, 13 Jun 2017 05:50:43 +0300 Subject: [PATCH] Removed useless code [#CLICKHOUSE-31]. --- dbms/src/Functions/FunctionsArray.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbms/src/Functions/FunctionsArray.cpp b/dbms/src/Functions/FunctionsArray.cpp index 011ac22be41..2c93ee2c1f8 100644 --- a/dbms/src/Functions/FunctionsArray.cpp +++ b/dbms/src/Functions/FunctionsArray.cpp @@ -2357,7 +2357,7 @@ bool FunctionRange::executeInternal(Block & block, const IColumn * const arg, co IColumn::Offset_t offset{}; for (const auto i : ext::range(0, in->size())) { - std::copy(boost::counting_iterator(T{}), boost::counting_iterator(in_data[i]), &out_data[offset]); + std::copy(boost::counting_iterator(), boost::counting_iterator(in_data[i]), &out_data[offset]); offset += in_data[i]; out_offsets[i] = offset; } @@ -2393,7 +2393,7 @@ bool FunctionRange::executeInternal(Block & block, const IColumn * const arg, co IColumn::Offset_t offset{}; for (const auto i : ext::range(0, in->size())) { - std::copy(boost::counting_iterator(T{}), boost::counting_iterator(in_data), &out_data[offset]); + std::copy(boost::counting_iterator(), boost::counting_iterator(in_data), &out_data[offset]); offset += in_data; out_offsets[i] = offset; }