File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
node-graph/gcore/src/vector Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -116,11 +116,6 @@ impl core::hash::Hash for VectorData {
116
116
}
117
117
118
118
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
-
124
119
/// Push a subpath to the vector data
125
120
pub fn append_subpath ( & mut self , subpath : impl Borrow < bezier_rs:: Subpath < PointId > > , preserve_id : bool ) {
126
121
let subpath: & bezier_rs:: Subpath < PointId > = subpath. borrow ( ) ;
@@ -213,7 +208,7 @@ impl VectorData {
213
208
}
214
209
215
210
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 ( ) ;
217
212
for target_type in target_types. into_iter ( ) {
218
213
let target_type = target_type. borrow ( ) ;
219
214
match target_type {
You can’t perform that action at this time.
0 commit comments