From f10ec54a1d9071643ee04a34a8d92431abcffa83 Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Tue, 1 Oct 2024 11:49:37 +0100 Subject: [PATCH] refactor(allocator): remove unnecessary `Vec` impl --- crates/oxc_allocator/src/vec.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/crates/oxc_allocator/src/vec.rs b/crates/oxc_allocator/src/vec.rs index 551faaf3f1613b..90149bafff53bb 100644 --- a/crates/oxc_allocator/src/vec.rs +++ b/crates/oxc_allocator/src/vec.rs @@ -143,14 +143,6 @@ impl<'alloc, T> ops::Index for Vec<'alloc, T> { } } -impl<'alloc, T> ops::Index for &'alloc Vec<'alloc, T> { - type Output = T; - - fn index(&self, index: usize) -> &Self::Output { - self.0.index(index) - } -} - // Unused right now. // impl<'alloc, T> ops::IndexMut for Vec<'alloc, T> { // fn index_mut(&mut self, index: usize) -> &mut Self::Output {