Inline redundant function

This commit is contained in:
Hanno Braun 2025-02-12 20:29:53 +01:00
parent 00d908d61b
commit a7387eadfc
2 changed files with 1 additions and 7 deletions

View File

@ -42,10 +42,6 @@ impl Face {
.map(|(a, b)| [a, b])
}
pub fn flip(&self) -> Self {
Self::new(self.surface().flip(), self.vertices().cloned())
}
pub fn translate(&self, offset: impl Into<Vector<3>>) -> Self {
let offset = offset.into();

View File

@ -1,5 +1,3 @@
use std::ops::Deref;
use crate::geometry::Handle;
use super::face::Face;
@ -10,6 +8,6 @@ pub trait FlipExt {
impl FlipExt for Handle<Face> {
fn flip(self) -> Face {
self.deref().flip()
Face::new(self.surface().flip(), self.vertices().cloned())
}
}