diff --git a/crates/fj-interop/src/ext.rs b/crates/fj-interop/src/ext.rs index 1a04248ee..cc5e5311e 100644 --- a/crates/fj-interop/src/ext.rs +++ b/crates/fj-interop/src/ext.rs @@ -13,11 +13,6 @@ pub trait ArrayExt { fn try_map_ext(self, f: F) -> Result<[U; N], E> where F: FnMut(T) -> Result; - - /// Stable replacement for `zip` - /// - /// - fn zip_ext(self, rhs: [U; N]) -> [(T, U); N]; } impl ArrayExt for [T; 2] { @@ -33,13 +28,6 @@ impl ArrayExt for [T; 2] { let [a, b] = self.map(f); Ok([a?, b?]) } - - fn zip_ext(self, rhs: [U; 2]) -> [(T, U); 2] { - let [a, b] = self; - let [c, d] = rhs; - - [(a, c), (b, d)] - } } impl ArrayExt for [T; 4] { @@ -55,13 +43,6 @@ impl ArrayExt for [T; 4] { let [a, b, c, d] = self.map(f); Ok([a?, b?, c?, d?]) } - - fn zip_ext(self, rhs: [U; 4]) -> [(T, U); 4] { - let [a, b, c, d] = self; - let [e, f, g, h] = rhs; - - [(a, e), (b, f), (c, g), (d, h)] - } } /// Extension trait for arrays