Skip to content

Commit

Permalink
refactor(allocator): remove unnecessary Vec impl
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Oct 1, 2024
1 parent cca0034 commit f10ec54
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions crates/oxc_allocator/src/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,6 @@ impl<'alloc, T> ops::Index<usize> for Vec<'alloc, T> {
}
}

impl<'alloc, T> ops::Index<usize> 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<usize> for Vec<'alloc, T> {
// fn index_mut(&mut self, index: usize) -> &mut Self::Output {
Expand Down

0 comments on commit f10ec54

Please sign in to comment.