Skip to content

Commit

Permalink
Remove unused HalfEdgeBuilder method
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Mar 1, 2023
1 parent 651fd62 commit 6c4f02f
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions crates/fj-kernel/src/builder/edge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ pub trait HalfEdgeBuilder {
next_half_edge: Partial<HalfEdge>,
);

/// Update partial half-edge to be a line segment, from the given points
fn update_as_line_segment_from_points(
&mut self,
points: [impl Into<Point<2>>; 2],
next_vertex: Partial<SurfaceVertex>,
) -> Curve;

/// Update partial half-edge to be a line segment
fn update_as_line_segment(
&mut self,
Expand Down Expand Up @@ -143,21 +136,6 @@ impl HalfEdgeBuilder for PartialHalfEdge {
self.infer_global_form(next_half_edge.read().start_vertex.clone());
}

fn update_as_line_segment_from_points(
&mut self,
points: [impl Into<Point<2>>; 2],
mut next_vertex: Partial<SurfaceVertex>,
) -> Curve {
for (vertex, point) in
[&mut self.start_vertex, &mut next_vertex].zip_ext(points)
{
let mut surface_form = vertex.write();
surface_form.position = Some(point.into());
}

self.update_as_line_segment(next_vertex)
}

fn update_as_line_segment(
&mut self,
next_vertex: Partial<SurfaceVertex>,
Expand Down

0 comments on commit 6c4f02f

Please sign in to comment.