Skip to content

Commit

Permalink
Just drop the nth optimization
Browse files Browse the repository at this point in the history
It will be made incorrect by zero-copy arrays.
  • Loading branch information
workingjubilee committed Apr 20, 2023
1 parent f2b86c0 commit f83a54e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pgrx/src/datum/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,11 +430,6 @@ impl<'a, T: FromDatum> Iterator for ArrayIntoIterator<'a, T> {
// TODO: This code is dangerously under-exercised in the test suite.
self.array.nelems - self.curr
}

fn nth(&mut self, n: usize) -> Option<Self::Item> {
// TODO: This code is dangerously under-exercised in the test suite.
self.array.get(self.curr + n)
}
}

impl<'a, T: FromDatum> FromDatum for VariadicArray<'a, T> {
Expand Down

0 comments on commit f83a54e

Please sign in to comment.