mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 22:41:38 +02:00
🎉 Improve tile shapes iteration
This commit is contained in:
parent
2d61644b05
commit
9ea3c54b92
2 changed files with 21 additions and 19 deletions
|
@ -60,10 +60,6 @@ impl TileHashMap {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn has_shapes_at(&mut self, tile: Tile) -> bool {
|
||||
return self.grid.contains_key(&tile);
|
||||
}
|
||||
|
||||
pub fn get_shapes_at(&mut self, tile: Tile) -> Option<&IndexSet<Uuid>> {
|
||||
return self.grid.get(&tile);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue