Skip to content
Snippets Groups Projects
Commit 03b53bf6 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Remove a piece of dead code.

Remove a piece of dead code which made select_range() and
select_reverse_range() extremely inefficient (a new iterator
instance for each tuple) and confusing.

box.index.iterator() creates a closure which is sufficient
to produce all iteration results. Use of index:next()
was apparently left by some tricky merge.
parent 9bce8696
No related branches found
No related tags found
No related merge requests found
......@@ -151,7 +151,6 @@ function box.bless_space(space)
break
end
table.insert(range, v)
iterator_state, v = index:next(iterator_state)
end
return unpack(range)
end
......@@ -162,7 +161,6 @@ function box.bless_space(space)
break
end
table.insert(range, v)
iterator_state, v = index:prev(iterator_state)
end
return unpack(range)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment