Remove unused argument

This commit is contained in:
Hanno Braun 2024-06-28 19:24:51 +02:00
parent e299373ba7
commit 6db64fe0e6
2 changed files with 1 additions and 4 deletions

View File

@ -37,7 +37,7 @@ impl SplitEdge for Shell {
let point = point.into(); let point = point.into();
let sibling = self let sibling = self
.get_sibling_of(half_edge, &core.layers.geometry) .get_sibling_of(half_edge)
.expect("Expected half-edge and its sibling to be part of shell"); .expect("Expected half-edge and its sibling to be part of shell");
let [half_edge_a, half_edge_b] = half_edge.split_half_edge(point, core); let [half_edge_a, half_edge_b] = half_edge.split_half_edge(point, core);

View File

@ -1,5 +1,4 @@
use crate::{ use crate::{
geometry::Geometry,
storage::Handle, storage::Handle,
topology::{HalfEdge, Shell}, topology::{HalfEdge, Shell},
}; };
@ -19,7 +18,6 @@ pub trait SiblingOfHalfEdge {
fn get_sibling_of( fn get_sibling_of(
&self, &self,
half_edge: &Handle<HalfEdge>, half_edge: &Handle<HalfEdge>,
geometry: &Geometry,
) -> Option<Handle<HalfEdge>>; ) -> Option<Handle<HalfEdge>>;
} }
@ -45,7 +43,6 @@ impl SiblingOfHalfEdge for Shell {
fn get_sibling_of( fn get_sibling_of(
&self, &self,
half_edge: &Handle<HalfEdge>, half_edge: &Handle<HalfEdge>,
_: &Geometry,
) -> Option<Handle<HalfEdge>> { ) -> Option<Handle<HalfEdge>> {
for face in self.faces() { for face in self.faces() {
for cycle in face.region().all_cycles() { for cycle in face.region().all_cycles() {