Skip to content

Commit

Permalink
fix: remove not_equals
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra committed May 29, 2022
1 parent bb2f2c6 commit e72a3f5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,6 @@ impl<V: Clone> Range<V> {
}
}

/// Set containing all versions expect one
pub fn not_equal(v: impl Into<V>) -> Self {
let v = v.into();
Self {
segments: SmallVec::Two([(Unbounded, Excluded(v.clone())), (Excluded(v), Unbounded)]),
}
}

/// Returns the complement of this Range.
pub fn complement(&self) -> Self {
match self.segments.first() {
Expand Down

0 comments on commit e72a3f5

Please sign in to comment.