bevy/crates/bevy_winit/src
UkoeHB c971b45361
Clean up WinitWindows::remove_window (#12749)
# Objective

- Avoid unbounded HashMap growth for opening/closing windows.

## Solution

- Remove map entry in `WinitWindows::remove_window`.

## Migration Guide

- `WinitWindows::get_window_entity` now returns `None` after a window is
closed, instead of a dead entity.

---

## Comments

The comment this PR replaces was added in
https://github.com/bevyengine/bevy/pull/3575. Since `get_window_entity`
now returns an `Entity` instead of a `WindowId`, this no longer seems
useful. Note that `get_window_entity` is only used
[here](56bcbb0975/crates/bevy_winit/src/lib.rs (L436)),
immediately followed by a warning if the entity returned doesn't exist.
2024-03-29 01:37:13 +00:00
..
accessibility.rs Move EntityHash related types into bevy_ecs (#11498) 2024-02-12 15:02:24 +00:00
converters.rs Add logical key data to KeyboardInput (#11400) 2024-01-22 15:25:17 +00:00
lib.rs Forbid unsafe in most crates in the engine (#12684) 2024-03-27 03:30:08 +00:00
system.rs Make CreateWindowParams type and create_windows system public (#12428) 2024-03-12 14:54:06 +00:00
winit_config.rs Add the ability to request a redraw from an external source (#12197) 2024-03-04 17:17:17 +00:00
winit_event.rs Fix failures of typos and check-cfg (#12293) 2024-03-04 07:48:09 +00:00
winit_windows.rs Clean up WinitWindows::remove_window (#12749) 2024-03-29 01:37:13 +00:00