From f83a54e82d4133221cc5e2ca3ef9e5d1090d7e6b Mon Sep 17 00:00:00 2001 From: Jubilee Young Date: Wed, 19 Apr 2023 17:24:53 -0700 Subject: [PATCH] Just drop the nth optimization It will be made incorrect by zero-copy arrays. --- pgrx/src/datum/array.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pgrx/src/datum/array.rs b/pgrx/src/datum/array.rs index 9450895599..7158a129b2 100644 --- a/pgrx/src/datum/array.rs +++ b/pgrx/src/datum/array.rs @@ -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 { - // 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> {