Skip to content

Commit

Permalink
Inline redundant variables
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Aug 26, 2024
1 parent f47a1f8 commit 33b76e3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions crates/fj-core/src/geometry/surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ impl SurfaceGeom {
Path::Circle(circle) => {
let params = PathApproxParams::for_circle(circle, tolerance);

let a = point_surface.u - params.increment();
let b = point_surface.u + params.increment();

[a, b]
.map(|point_circle| {
circle.point_from_circle_coords([point_circle])
})
.map(|point_global| point_global + self.v * point_surface.v)
[
point_surface.u - params.increment(),
point_surface.u + params.increment(),
]
.map(|point_circle| {
circle.point_from_circle_coords([point_circle])
})
.map(|point_global| point_global + self.v * point_surface.v)
}
Path::Line(line) => {
// We don't need to approximate a line. So instead of creating a
Expand Down

0 comments on commit 33b76e3

Please sign in to comment.