mirror of
https://github.com/penpot/penpot.git
synced 2026-03-17 07:56:14 +00:00
🎉 Use Vec instead of Indexset
This commit is contained in:
committed by
Alonso Torres
parent
61202e1cab
commit
ba092f03e1
@@ -5,7 +5,6 @@ use crate::state::ShapesPoolRef;
|
||||
use crate::uuid::Uuid;
|
||||
use bezier_rs::{Bezier, BezierHandles, ProjectionOptions, TValue};
|
||||
use glam::DVec2;
|
||||
use indexmap::IndexSet;
|
||||
use skia_safe as skia;
|
||||
use std::cmp::Ordering;
|
||||
use std::collections::{BTreeMap, HashMap};
|
||||
@@ -384,11 +383,7 @@ fn beziers_to_segments(beziers: &[(BezierSource, Bezier)]) -> Vec<Segment> {
|
||||
result
|
||||
}
|
||||
|
||||
pub fn bool_from_shapes(
|
||||
bool_type: BoolType,
|
||||
children_ids: &IndexSet<Uuid>,
|
||||
shapes: ShapesPoolRef,
|
||||
) -> Path {
|
||||
pub fn bool_from_shapes(bool_type: BoolType, children_ids: &[Uuid], shapes: ShapesPoolRef) -> Path {
|
||||
if children_ids.is_empty() {
|
||||
return Path::default();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user