Skip to content

Commit ebf7481

Browse files
committed
cleanup
1 parent 240f618 commit ebf7481

File tree

3 files changed

+0
-41
lines changed

3 files changed

+0
-41
lines changed

node-graph/gcore/src/subpath/core.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -316,25 +316,4 @@ impl<PointId: Identifier> Subpath<PointId> {
316316
pub fn new_line(p1: DVec2, p2: DVec2) -> Self {
317317
Self::from_anchors([p1, p2], false)
318318
}
319-
320-
#[cfg(feature = "kurbo")]
321-
pub fn to_vello_path(&self, transform: glam::DAffine2, path: &mut kurbo::BezPath) {
322-
use crate::BezierHandles;
323-
324-
let to_point = |p: DVec2| {
325-
let p = transform.transform_point2(p);
326-
kurbo::Point::new(p.x, p.y)
327-
};
328-
path.move_to(to_point(self.iter().next().unwrap().start));
329-
for segment in self.iter() {
330-
match segment.handles {
331-
BezierHandles::Linear => path.line_to(to_point(segment.end)),
332-
BezierHandles::Quadratic { handle } => path.quad_to(to_point(handle), to_point(segment.end)),
333-
BezierHandles::Cubic { handle_start, handle_end } => path.curve_to(to_point(handle_start), to_point(handle_end), to_point(segment.end)),
334-
}
335-
}
336-
if self.closed {
337-
path.close_path();
338-
}
339-
}
340319
}

node-graph/gcore/src/subpath/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ pub struct Subpath<PointId: Identifier> {
2020
pub closed: bool,
2121
}
2222

23-
#[cfg(feature = "dyn-any")]
24-
unsafe impl<PointId: Identifier> dyn_any::StaticType for Subpath<PointId> {
25-
type Static = Subpath<PointId>;
26-
}
27-
2823
/// Iteration structure for iterating across each curve of a `Subpath`, using an intermediate `Bezier` representation.
2924
pub struct SubpathIter<'a, PointId: Identifier> {
3025
index: usize,

node-graph/gcore/src/subpath/structs.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,6 @@ impl<PointId: Identifier> Hash for ManipulatorGroup<PointId> {
4949
}
5050
}
5151

52-
#[cfg(feature = "dyn-any")]
53-
unsafe impl<PointId: Identifier> dyn_any::StaticType for ManipulatorGroup<PointId> {
54-
type Static = ManipulatorGroup<PointId>;
55-
}
56-
5752
impl<PointId: Identifier> Debug for ManipulatorGroup<PointId> {
5853
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
5954
f.debug_struct("ManipulatorGroup")
@@ -248,11 +243,6 @@ impl BezierHandles {
248243
}
249244
}
250245

251-
#[cfg(feature = "dyn-any")]
252-
unsafe impl dyn_any::StaticType for BezierHandles {
253-
type Static = BezierHandles;
254-
}
255-
256246
/// Representation of a bezier curve with 2D points.
257247
#[derive(Copy, Clone, PartialEq)]
258248
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
@@ -278,11 +268,6 @@ impl Debug for Bezier {
278268
}
279269
}
280270

281-
#[cfg(feature = "dyn-any")]
282-
unsafe impl dyn_any::StaticType for Bezier {
283-
type Static = Bezier;
284-
}
285-
286271
/// Functionality for the getters and setters of the various points in a Bezier
287272
impl Bezier {
288273
/// Set the coordinates of the start point.

0 commit comments

Comments
 (0)