Skip to content

Commit 9792edb

Browse files
committed
Lints
1 parent ec80bd2 commit 9792edb

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

node-graph/gcore/src/vector/vector_data.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,6 @@ impl core::hash::Hash for VectorData {
116116
}
117117

118118
impl VectorData {
119-
/// Construct some new vector data from a single subpath with an identity transform and black fill.
120-
pub fn from_subpath(subpath: impl Borrow<bezier_rs::Subpath<PointId>>) -> Self {
121-
Self::from_subpaths([subpath], false)
122-
}
123-
124119
/// Push a subpath to the vector data
125120
pub fn append_subpath(&mut self, subpath: impl Borrow<bezier_rs::Subpath<PointId>>, preserve_id: bool) {
126121
let subpath: &bezier_rs::Subpath<PointId> = subpath.borrow();
@@ -213,7 +208,7 @@ impl VectorData {
213208
}
214209

215210
pub fn from_target_types(target_types: impl IntoIterator<Item = impl Borrow<ClickTargetType>>, preserve_id: bool) -> Self {
216-
let mut vector_data = Self::empty();
211+
let mut vector_data = Self::default();
217212
for target_type in target_types.into_iter() {
218213
let target_type = target_type.borrow();
219214
match target_type {

0 commit comments

Comments
 (0)