Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamGS committed Aug 8, 2024
1 parent 23d69de commit 2cd27f5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions vortex-serde/src/layouts/reader/projections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ impl Projection {
pub fn new(indices: impl AsRef<[usize]>) -> Self {
Self::Partial(Vec::from(indices.as_ref()))
}

pub fn contains_idx(&self, idx: usize) -> bool {
match self {
Projection::All => true,
Projection::Partial(idxs) => idxs.contains(&idx),
}
}
}

impl From<Vec<usize>> for Projection {
Expand Down

0 comments on commit 2cd27f5

Please sign in to comment.