Removed useless code [#CLICKHOUSE-31].

This commit is contained in:
Alexey Milovidov 2017-06-13 05:50:43 +03:00
parent 3ddea6b260
commit 74bd90701e

View File

@ -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<T>(), boost::counting_iterator<T>(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<T>(), boost::counting_iterator<T>(in_data), &out_data[offset]);
offset += in_data;
out_offsets[i] = offset;
}