Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Jan 11, 2023
1 parent e7407a4 commit 18d280b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions crates/fj-kernel/src/builder/sketch.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{
objects::Face,
partial::{Partial, PartialFace, PartialSketch},
partial::{Partial, PartialSketch},
};

/// Builder API for [`PartialSketch`]
Expand All @@ -11,11 +11,8 @@ pub trait SketchBuilder {

impl SketchBuilder for PartialSketch {
fn add_face(&mut self) -> Partial<Face> {
let face = PartialFace::default();

let face = Partial::from_partial(face);
let face = Partial::default();
self.faces.extend([face.clone()]);

face
}
}

0 comments on commit 18d280b

Please sign in to comment.