From 19724a3010ce6016e303e6187b65823a418f5a9a Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 28 Jun 2022 18:48:58 +0200 Subject: [PATCH] Remove unused struct field --- crates/fj-kernel/src/builder.rs | 15 ++++----------- crates/fj-kernel/src/objects/face.rs | 4 ++-- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/crates/fj-kernel/src/builder.rs b/crates/fj-kernel/src/builder.rs index acfb58a10..0d8744199 100644 --- a/crates/fj-kernel/src/builder.rs +++ b/crates/fj-kernel/src/builder.rs @@ -2,32 +2,25 @@ use fj_math::Point; -use crate::{ - objects::{Cycle, Face, Surface}, - shape::Shape, -}; +use crate::objects::{Cycle, Face, Surface}; /// API for building a [`Face`] #[must_use] -pub struct FaceBuilder<'r> { +pub struct FaceBuilder { surface: Surface, exterior: Option>>, interiors: Vec>>, color: Option<[u8; 4]>, - - _shape: &'r mut Shape, } -impl<'r> FaceBuilder<'r> { +impl FaceBuilder { /// Construct a new instance of `FaceBuilder` - pub fn new(surface: Surface, _shape: &'r mut Shape) -> Self { + pub fn new(surface: Surface) -> Self { Self { surface, exterior: None, interiors: Vec::new(), color: None, - - _shape, } } diff --git a/crates/fj-kernel/src/objects/face.rs b/crates/fj-kernel/src/objects/face.rs index acd462e66..ceae1f963 100644 --- a/crates/fj-kernel/src/objects/face.rs +++ b/crates/fj-kernel/src/objects/face.rs @@ -57,8 +57,8 @@ impl Face { }) } /// Build a face using the [`FaceBuilder`] API - pub fn builder(surface: Surface, shape: &mut Shape) -> FaceBuilder { - FaceBuilder::new(surface, shape) + pub fn builder(surface: Surface, _shape: &mut Shape) -> FaceBuilder { + FaceBuilder::new(surface) } /// Access the boundary representation of the face