mirror of https://github.com/hannobraun/Fornjot
Remove unused struct field
This commit is contained in:
parent
bac7c658e6
commit
19724a3010
|
@ -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<Vec<Point<2>>>,
|
||||
interiors: Vec<Vec<Point<2>>>,
|
||||
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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue