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 {
116116}
117117
118118impl 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 {
You can’t perform that action at this time.
0 commit comments