Skip to content

Commit 003c38a

Browse files
committed
Remove Dead Code
1 parent 07c5e30 commit 003c38a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

node-graph/nodes/vector/src/aperiodic_tiling.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ fn match_two(p1: DVec2, q1: DVec2, p2: DVec2, q2: DVec2) -> DAffine2 {
4545
fn intersect(p1: DVec2, q1: DVec2, p2: DVec2, q2: DVec2) -> DVec2 {
4646
let d = (q2.y - p2.y) * (q1.x - p1.x) - (q2.x - p2.x) * (q1.y - p1.y);
4747
if d.abs() < 1e-12 {
48-
debug_assert!(false, "parallel lines in intersect");
49-
return p1;
48+
panic!("parallel lines in intersect");
5049
}
5150
let ua = ((q2.x - p2.x) * (p1.y - p2.y) - (q2.y - p2.y) * (p1.x - p2.x)) / d;
5251
p1 + ua * (q1 - p1)

0 commit comments

Comments
 (0)