Skip to content

Commit

Permalink
remove unneeded unique
Browse files Browse the repository at this point in the history
  • Loading branch information
brentp committed Dec 14, 2023
1 parent 1c618ca commit b0719c6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/intersections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ pub enum IntersectionPart {
Part,
/// Report the whole interval of A that overlaps B
Whole,
/// Report Unique As even if multiple Bs overlap
Unique,
}

impl Default for IntersectionMode {
Expand Down Expand Up @@ -201,19 +199,16 @@ impl Intersections {
self.adjust_bounds(&mut a_interval, overlaps);
Some(a_interval)
}
_ => Some(self.base_interval.dup()), // For Whole and Unique
IntersectionPart::Whole => Some(self.base_interval.dup()),
};

return match b_part {
// None, Part, Unique, Whole
// None, Part, Whole
IntersectionPart::None => ReportFragment {
a: a_position,
b: vec![],
id: b_idx,
},
IntersectionPart::Unique => {
unimplemented!("Unique B not implemented yet. Is it even possible?")
}
IntersectionPart::Part => {
let mut b_positions = Vec::new();
for o in overlaps {
Expand Down

0 comments on commit b0719c6

Please sign in to comment.