Skip to content

Commit 240f618

Browse files
committed
remove unused
1 parent 1476a4a commit 240f618

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

node-graph/gcore/src/vector/algorithms/bezpath_algorithms.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -224,15 +224,6 @@ pub fn pathseg_tangents_to_point(segment: PathSeg, point: Point) -> Vec<f64> {
224224
segment.to_cubic().tangents_to_point(point).to_vec()
225225
}
226226

227-
fn parameters(cubic_bez: CubicBez) -> (Vec2, Vec2, Vec2, Vec2) {
228-
let c = (cubic_bez.p1 - cubic_bez.p0) * 3.0;
229-
let b = (cubic_bez.p2 - cubic_bez.p1) * 3.0 - c;
230-
let d = cubic_bez.p0.to_vec2();
231-
let a = cubic_bez.p3.to_vec2() - d - c - b;
232-
233-
(a, b, c, d)
234-
}
235-
236227
/// Return the subsegment for the given [TValue] range. Returns None if parametric value of `t1` is greater than `t2`.
237228
pub fn trim_pathseg(segment: PathSeg, t1: TValue, t2: TValue) -> Option<PathSeg> {
238229
let t1 = eval_pathseg(segment, t1);

node-graph/gcore/src/vector/algorithms/symmetrical_basis.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ impl SymmetricalBasisPair {
282282
(&self.x * &other.x) + (&self.y * &other.y)
283283
}
284284

285-
#[must_use]
285+
#[allow(unused)]
286286
pub fn cross(&self, rhs: &Self) -> SymmetricalBasis {
287287
(&self.x * &rhs.y) - (&self.y * &rhs.x)
288288
}
@@ -539,9 +539,9 @@ fn binomial_decrement_n(b: f64, n: usize, k: usize) -> f64 {
539539
#[must_use]
540540
pub(crate) fn to_symmetrical_basis_pair(bezier: PathSeg) -> SymmetricalBasisPair {
541541
let n = match bezier {
542-
PathSeg::Line(line) => 1,
543-
PathSeg::Quad(quad_bez) => 2,
544-
PathSeg::Cubic(cubic_bez) => 3,
542+
PathSeg::Line(_) => 1,
543+
PathSeg::Quad(_) => 2,
544+
PathSeg::Cubic(_) => 3,
545545
};
546546
let q = (n + 1) / 2;
547547
let even = n % 2 == 0;

0 commit comments

Comments
 (0)